diff options
author | Jingoo Han <jg1.han@samsung.com> | 2012-12-17 19:00:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 20:15:15 -0500 |
commit | 8ab77f46ea3ac295859dec2533653a65c54b9a22 (patch) | |
tree | af7db97cfe10c41c86b87b954f07a1e3494fab3c /drivers/video | |
parent | 97d9655c7fcc8e408d06ac6fb4cdffecd51cf5e8 (diff) |
backlight: tosa: fix checkpatch error and warning
This patch fixes the checkpatch error and warning as below:
ERROR: spaces required around that '?' (ctx:VxW)
ERROR: space required after that ',' (ctx:VxV)
Also, unnecessary lines are removed.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/tosa_bl.c | 1 | ||||
-rw-r--r-- | drivers/video/backlight/tosa_lcd.c | 16 |
2 files changed, 9 insertions, 8 deletions
diff --git a/drivers/video/backlight/tosa_bl.c b/drivers/video/backlight/tosa_bl.c index a0521abdcd8a..07ee31a4951c 100644 --- a/drivers/video/backlight/tosa_bl.c +++ b/drivers/video/backlight/tosa_bl.c | |||
@@ -163,7 +163,6 @@ static const struct i2c_device_id tosa_bl_id[] = { | |||
163 | { }, | 163 | { }, |
164 | }; | 164 | }; |
165 | 165 | ||
166 | |||
167 | static struct i2c_driver tosa_bl_driver = { | 166 | static struct i2c_driver tosa_bl_driver = { |
168 | .driver = { | 167 | .driver = { |
169 | .name = "tosa-bl", | 168 | .name = "tosa-bl", |
diff --git a/drivers/video/backlight/tosa_lcd.c b/drivers/video/backlight/tosa_lcd.c index 86fff88c2e4a..2a2d506f08c0 100644 --- a/drivers/video/backlight/tosa_lcd.c +++ b/drivers/video/backlight/tosa_lcd.c | |||
@@ -63,7 +63,7 @@ static int tosa_tg_send(struct spi_device *spi, int adrs, uint8_t data) | |||
63 | int tosa_bl_enable(struct spi_device *spi, int enable) | 63 | int tosa_bl_enable(struct spi_device *spi, int enable) |
64 | { | 64 | { |
65 | /* bl_enable GP04=1 otherwise GP04=0*/ | 65 | /* bl_enable GP04=1 otherwise GP04=0*/ |
66 | return tosa_tg_send(spi, TG_GPODR2, enable? 0x01 : 0x00); | 66 | return tosa_tg_send(spi, TG_GPODR2, enable ? 0x01 : 0x00); |
67 | } | 67 | } |
68 | EXPORT_SYMBOL(tosa_bl_enable); | 68 | EXPORT_SYMBOL(tosa_bl_enable); |
69 | 69 | ||
@@ -91,15 +91,17 @@ static void tosa_lcd_tg_on(struct tosa_lcd_data *data) | |||
91 | tosa_tg_send(spi, TG_PNLCTL, value); | 91 | tosa_tg_send(spi, TG_PNLCTL, value); |
92 | 92 | ||
93 | /* TG LCD pannel power up */ | 93 | /* TG LCD pannel power up */ |
94 | tosa_tg_send(spi, TG_PINICTL,0x4); | 94 | tosa_tg_send(spi, TG_PINICTL, 0x4); |
95 | mdelay(50); | 95 | mdelay(50); |
96 | 96 | ||
97 | /* TG LCD GVSS */ | 97 | /* TG LCD GVSS */ |
98 | tosa_tg_send(spi, TG_PINICTL,0x0); | 98 | tosa_tg_send(spi, TG_PINICTL, 0x0); |
99 | 99 | ||
100 | if (!data->i2c) { | 100 | if (!data->i2c) { |
101 | /* after the pannel is powered up the first time, we can access the i2c bus */ | 101 | /* |
102 | /* so probe for the DAC */ | 102 | * after the pannel is powered up the first time, |
103 | * we can access the i2c bus so probe for the DAC | ||
104 | */ | ||
103 | struct i2c_adapter *adap = i2c_get_adapter(0); | 105 | struct i2c_adapter *adap = i2c_get_adapter(0); |
104 | struct i2c_board_info info = { | 106 | struct i2c_board_info info = { |
105 | .type = "tosa-bl", | 107 | .type = "tosa-bl", |
@@ -115,11 +117,11 @@ static void tosa_lcd_tg_off(struct tosa_lcd_data *data) | |||
115 | struct spi_device *spi = data->spi; | 117 | struct spi_device *spi = data->spi; |
116 | 118 | ||
117 | /* TG LCD VHSA off */ | 119 | /* TG LCD VHSA off */ |
118 | tosa_tg_send(spi, TG_PINICTL,0x4); | 120 | tosa_tg_send(spi, TG_PINICTL, 0x4); |
119 | mdelay(50); | 121 | mdelay(50); |
120 | 122 | ||
121 | /* TG LCD signal off */ | 123 | /* TG LCD signal off */ |
122 | tosa_tg_send(spi, TG_PINICTL,0x6); | 124 | tosa_tg_send(spi, TG_PINICTL, 0x6); |
123 | mdelay(50); | 125 | mdelay(50); |
124 | 126 | ||
125 | /* TG Off */ | 127 | /* TG Off */ |