diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2013-04-29 19:18:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:19 -0400 |
commit | c365e59d47b75c5f288f7e63d95dc0c9abcfe516 (patch) | |
tree | 93b77b3a538b27797ab5bbd50f5c462b8154dec1 /drivers/video/backlight | |
parent | 98e35be2badd7a499a001a0681d1904f8c56f3e6 (diff) |
backlight: lp855x: remove duplicate platform data
The 'load_new_rom_data' was used for checking whether new ROM data should
be updated or not.
However, we can decide it with 'size_program' data. If the size is
greater than 0, it means updating ROM area is required. Otherwise, the
default ROM data will be used. Therefore, this duplicate platform data
can be removed.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/lp855x_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index b94dc00cea3f..f558f8f329e5 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c | |||
@@ -192,7 +192,7 @@ static int lp855x_configure(struct lp855x *lp) | |||
192 | if (ret) | 192 | if (ret) |
193 | goto err; | 193 | goto err; |
194 | 194 | ||
195 | if (pd->load_new_rom_data && pd->size_program) { | 195 | if (pd->size_program > 0) { |
196 | for (i = 0; i < pd->size_program; i++) { | 196 | for (i = 0; i < pd->size_program; i++) { |
197 | addr = pd->rom_data[i].addr; | 197 | addr = pd->rom_data[i].addr; |
198 | val = pd->rom_data[i].val; | 198 | val = pd->rom_data[i].val; |