i2c: zynq: Support for 0-length register address
authorMichael Burr <michael.burr@logicpd.com>
Wed, 22 Jan 2014 08:46:07 +0000 (09:46 +0100)
committerHeiko Schocher <hs@denx.de>
Thu, 20 Feb 2014 05:46:55 +0000 (06:46 +0100)
commit9e901071550dd533cc291fb5d19b0841993f6fe7
tree413d4681030004ed01b4260e6710181e79f8f7b0
parent0a8e823ad0c5a602c93c2e8a54caf622ade6d3fb
i2c: zynq: Support for 0-length register address

Fixed bug with alen == 0 in 'i2c_write', 'i2c_read'
Further minor corrections:
- Write 'address' register before 'data' register.
- Write 'transfer_size' register before 'address' register.

Signed-off-by: Michael Burr <michael.burr@logicpd.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/i2c/zynq_i2c.c