|
24 | 24 | #include <linux/module.h> |
25 | 25 | #include <linux/platform_device.h> |
26 | 26 | #include <linux/gpio.h> |
27 | | -#include <linux/i2c/twl4030.h> |
| 27 | +#include <linux/i2c/twl.h> |
28 | 28 |
|
29 | 29 | #include <plat/mux.h> |
30 | 30 | #include <asm/mach-types.h> |
@@ -61,9 +61,9 @@ static int omap2evm_panel_init(struct lcd_panel *panel, |
61 | 61 | gpio_direction_output(LCD_PANEL_LR, 1); |
62 | 62 | gpio_direction_output(LCD_PANEL_UD, 1); |
63 | 63 |
|
64 | | - twl4030_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN); |
65 | | - twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON); |
66 | | - twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF); |
| 64 | + twl_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN); |
| 65 | + twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON); |
| 66 | + twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF); |
67 | 67 | bklight_level = 100; |
68 | 68 |
|
69 | 69 | return 0; |
@@ -101,7 +101,7 @@ static int omap2evm_bklight_setlevel(struct lcd_panel *panel, |
101 | 101 | u8 c; |
102 | 102 | if ((level >= 0) && (level <= 100)) { |
103 | 103 | c = (125 * (100 - level)) / 100 + 2; |
104 | | - twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF); |
| 104 | + twl_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF); |
105 | 105 | bklight_level = level; |
106 | 106 | } |
107 | 107 | return 0; |
|
0 commit comments