diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-2.6.39/mfd/0009-MFD-TWL4030-Modifying-the-macro-name-Main_Ref-to-all.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap-2.6.39/mfd/0009-MFD-TWL4030-Modifying-the-macro-name-Main_Ref-to-all.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-2.6.39/mfd/0009-MFD-TWL4030-Modifying-the-macro-name-Main_Ref-to-all.patch b/extras/recipes-kernel/linux/linux-omap-2.6.39/mfd/0009-MFD-TWL4030-Modifying-the-macro-name-Main_Ref-to-all.patch new file mode 100644 index 00000000..6be454aa --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap-2.6.39/mfd/0009-MFD-TWL4030-Modifying-the-macro-name-Main_Ref-to-all.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | From ea9acebfe2d3ca8fb3969eaf327665632142b85d Mon Sep 17 00:00:00 2001 | ||
2 | From: Lesly A M <leslyam@ti.com> | ||
3 | Date: Wed, 1 Jun 2011 14:56:45 -0700 | ||
4 | Subject: [PATCH 09/13] MFD: TWL4030: Modifying the macro name Main_Ref to all caps | ||
5 | |||
6 | Modifying the macro name Main_Ref to all caps(MAIN_REF). | ||
7 | |||
8 | Suggested by Nishanth Menon <nm@ti.com> | ||
9 | |||
10 | Signed-off-by: Lesly A M <leslyam@ti.com> | ||
11 | Cc: Nishanth Menon <nm@ti.com> | ||
12 | Cc: David Derrick <dderrick@ti.com> | ||
13 | Cc: Samuel Ortiz <sameo@linux.intel.com> | ||
14 | --- | ||
15 | arch/arm/mach-omap2/board-rx51-peripherals.c | 2 +- | ||
16 | drivers/mfd/twl4030-power.c | 2 +- | ||
17 | include/linux/i2c/twl.h | 2 +- | ||
18 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
19 | |||
20 | diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c | ||
21 | index bbcb677..01ee0a1 100644 | ||
22 | --- a/arch/arm/mach-omap2/board-rx51-peripherals.c | ||
23 | +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | ||
24 | @@ -730,7 +730,7 @@ static struct twl4030_resconfig twl4030_rconfig[] __initdata = { | ||
25 | { .resource = RES_RESET, .devgroup = -1, | ||
26 | .type = 1, .type2 = -1, .remap_off = -1, .remap_sleep = -1 | ||
27 | }, | ||
28 | - { .resource = RES_Main_Ref, .devgroup = -1, | ||
29 | + { .resource = RES_MAIN_REF, .devgroup = -1, | ||
30 | .type = 1, .type2 = -1, .remap_off = -1, .remap_sleep = -1 | ||
31 | }, | ||
32 | { 0, 0}, | ||
33 | diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c | ||
34 | index 8373d79..8162e43 100644 | ||
35 | --- a/drivers/mfd/twl4030-power.c | ||
36 | +++ b/drivers/mfd/twl4030-power.c | ||
37 | @@ -120,7 +120,7 @@ static u8 res_config_addrs[] = { | ||
38 | [RES_HFCLKOUT] = 0x8b, | ||
39 | [RES_32KCLKOUT] = 0x8e, | ||
40 | [RES_RESET] = 0x91, | ||
41 | - [RES_Main_Ref] = 0x94, | ||
42 | + [RES_MAIN_REF] = 0x94, | ||
43 | }; | ||
44 | |||
45 | static int __init twl4030_write_script_byte(u8 address, u8 byte) | ||
46 | diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h | ||
47 | index cbbf3b3..aee3a22 100644 | ||
48 | --- a/include/linux/i2c/twl.h | ||
49 | +++ b/include/linux/i2c/twl.h | ||
50 | @@ -502,7 +502,7 @@ static inline int twl6030_mmc_card_detect(struct device *dev, int slot) | ||
51 | #define RES_32KCLKOUT 26 | ||
52 | #define RES_RESET 27 | ||
53 | /* Power Reference */ | ||
54 | -#define RES_Main_Ref 28 | ||
55 | +#define RES_MAIN_REF 28 | ||
56 | |||
57 | #define TOTAL_RESOURCES 28 | ||
58 | /* | ||
59 | -- | ||
60 | 1.6.6.1 | ||
61 | |||