mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
98e35be2ba
commit
c365e59d47
3 changed files with 1 additions and 9 deletions
|
|
@ -192,7 +192,7 @@ static int lp855x_configure(struct lp855x *lp)
|
|||
if (ret)
|
||||
goto err;
|
||||
|
||||
if (pd->load_new_rom_data && pd->size_program) {
|
||||
if (pd->size_program > 0) {
|
||||
for (i = 0; i < pd->size_program; i++) {
|
||||
addr = pd->rom_data[i].addr;
|
||||
val = pd->rom_data[i].val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue