diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-15 07:06:02 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-17 03:47:27 -0400 |
commit | c82693317e4a34b2b3ed4220c6fca3e99a75b045 (patch) | |
tree | 27eea78abc20e5625e73baf314289ea32000f6f8 /drivers/mfd | |
parent | d619bc143e311a738113dbbe7792bd032403939f (diff) |
mfd: Fix twl4030-power warnings
KEY_1 and KEY_2 definitions conflicts with include/linux/input.h
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/twl4030-power.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index 5284c7c169a5..d423e0c4176b 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c | |||
@@ -64,8 +64,8 @@ static u8 twl4030_start_script_address = 0x2b; | |||
64 | #define R_MEMORY_DATA PHY_TO_OFF_PM_MASTER(0x5a) | 64 | #define R_MEMORY_DATA PHY_TO_OFF_PM_MASTER(0x5a) |
65 | 65 | ||
66 | #define R_PROTECT_KEY 0x0E | 66 | #define R_PROTECT_KEY 0x0E |
67 | #define KEY_1 0xC0 | 67 | #define R_KEY_1 0xC0 |
68 | #define KEY_2 0x0C | 68 | #define R_KEY_2 0x0C |
69 | 69 | ||
70 | /* resource configuration registers */ | 70 | /* resource configuration registers */ |
71 | 71 | ||
@@ -424,12 +424,12 @@ void __init twl4030_power_init(struct twl4030_power_data *twl4030_scripts) | |||
424 | struct twl4030_resconfig *resconfig; | 424 | struct twl4030_resconfig *resconfig; |
425 | u8 address = twl4030_start_script_address; | 425 | u8 address = twl4030_start_script_address; |
426 | 426 | ||
427 | err = twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, KEY_1, | 427 | err = twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, R_KEY_1, |
428 | R_PROTECT_KEY); | 428 | R_PROTECT_KEY); |
429 | if (err) | 429 | if (err) |
430 | goto unlock; | 430 | goto unlock; |
431 | 431 | ||
432 | err = twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, KEY_2, | 432 | err = twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, R_KEY_2, |
433 | R_PROTECT_KEY); | 433 | R_PROTECT_KEY); |
434 | if (err) | 434 | if (err) |
435 | goto unlock; | 435 | goto unlock; |