]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/glsdk-u-boot.git/commit
twl6030: twl6030_i2c_[read|write]_u8 prototype consistent
authorNishanth Menon <nm@ti.com>
Tue, 26 Mar 2013 05:20:51 +0000 (05:20 +0000)
committerTom Rini <trini@ti.com>
Fri, 10 May 2013 12:25:54 +0000 (08:25 -0400)
commit345ef20465f7b2628b6f6e93b4f2e1d7280f7b7d
tree2ea3dc792b0c2225e1423e45ab6cbd408cb0b7b5
parentb29c2f0c142fdb8ef50deae1cc7c4338952fba6c
twl6030: twl6030_i2c_[read|write]_u8 prototype consistent

u-boot standard i2c register access prototype is
i2c_read(addr, reg, 1, &buf, 1)
i2c_reg_write(u8 addr, u8 reg, u8 val)

twl6030_i2c_read_u8(u8 addr, u8 *val, u8 reg)
twl6030_i2c_write_u8(u8 addr, u8 val, u8 reg)
does not provide consistency, so switch the prototype to be
consistent with rest of u-boot i2c operations:
twl6030_i2c_read_u8(u8 addr, u8 reg, u8 *val)
twl6030_i2c_write_u8(u8 addr, u8 reg, u8 val)

Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/power/twl6030.c