mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mfd: Rename all twl4030_i2c*
This patch renames function names like twl4030_i2c_write_u8, twl4030_i2c_read_u8 to twl_i2c_write_u8, twl_i2c_read_u8 and also common variable in twl-core.c Signed-off-by: Rajendra Nayak <[email protected]> Signed-off-by: Balaji T K <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]> Acked-by: Kevin Hilman <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
b07682b605
commit
fc7b92fca4
13 changed files with 187 additions and 160 deletions
|
|
@ -133,7 +133,7 @@ struct twl4030_keypad {
|
|||
static int twl4030_kpread(struct twl4030_keypad *kp,
|
||||
u8 *data, u32 reg, u8 num_bytes)
|
||||
{
|
||||
int ret = twl4030_i2c_read(TWL4030_MODULE_KEYPAD, data, reg, num_bytes);
|
||||
int ret = twl_i2c_read(TWL4030_MODULE_KEYPAD, data, reg, num_bytes);
|
||||
|
||||
if (ret < 0)
|
||||
dev_warn(kp->dbg_dev,
|
||||
|
|
@ -145,7 +145,7 @@ static int twl4030_kpread(struct twl4030_keypad *kp,
|
|||
|
||||
static int twl4030_kpwrite_u8(struct twl4030_keypad *kp, u8 data, u32 reg)
|
||||
{
|
||||
int ret = twl4030_i2c_write_u8(TWL4030_MODULE_KEYPAD, data, reg);
|
||||
int ret = twl_i2c_write_u8(TWL4030_MODULE_KEYPAD, data, reg);
|
||||
|
||||
if (ret < 0)
|
||||
dev_warn(kp->dbg_dev,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ static irqreturn_t powerbutton_irq(int irq, void *_pwr)
|
|||
local_irq_enable();
|
||||
#endif
|
||||
|
||||
err = twl4030_i2c_read_u8(TWL4030_MODULE_PM_MASTER, &value,
|
||||
err = twl_i2c_read_u8(TWL4030_MODULE_PM_MASTER, &value,
|
||||
STS_HW_CONDITIONS);
|
||||
if (!err) {
|
||||
input_report_key(pwr, KEY_POWER, value & PWR_PWRON_IRQ);
|
||||
|
|
|
|||
Loading…
Reference in a new issue