summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2013-03-26 05:20:49 +0000
committerTom Rini <trini@ti.com>2013-05-10 08:25:54 -0400
commit0208aaf6c2e0f346e8410c0e5adb0ea784f00829 (patch)
treef34a9e3197bf43352b92d2d673e3bc79bb75e138 /drivers/misc
parentcd87464d0873d2db920e6b712ef34e9c83cfe5e6 (diff)
twl4030: make twl4030_i2c_write_u8 prototype consistent
u-boot standard i2c register write prototype is i2c_reg_write(u8 addr, u8 reg, u8 val) twl4030_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: twl4030_i2c_write_u8(u8 addr, u8 reg, u8 val) Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/twl4030_led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/twl4030_led.c b/drivers/misc/twl4030_led.c
index 33cea116d29..e150d8f0372 100644
--- a/drivers/misc/twl4030_led.c
+++ b/drivers/misc/twl4030_led.c
@@ -42,7 +42,7 @@ void twl4030_led_init(unsigned char ledon_mask)
if (ledon_mask & TWL4030_LED_LEDEN_LEDBON)
ledon_mask |= TWL4030_LED_LEDEN_LEDBPWM;
- twl4030_i2c_write_u8(TWL4030_CHIP_LED, ledon_mask,
- TWL4030_LED_LEDEN);
+ twl4030_i2c_write_u8(TWL4030_CHIP_LED, TWL4030_LED_LEDEN,
+ ledon_mask);
}