backlight: set backlight type and max_brightness before backlights are registered
authorAxel Lin <axel.lin@gmail.com>
Tue, 26 Jul 2011 00:12:01 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:08 +0000 (20:57 -0700)
commitef22f6a70c9186c8e25f757b0e8f7374b37f69bf
tree2a2dcaa322941a54059421a96d462fc3a8585354
parenta4c8aaa559733d03cb6bb4fa62c25ae756c53e94
backlight: set backlight type and max_brightness before backlights are registered

Since commit a19a6ee "backlight: Allow properties to be passed at
registration" and commit bb7ca74 "backlight: add backlight type", we can
set backlight type and max_brightness before backlights are registered.
Some newly added drivers did not set it properly, let's fix it.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Donghwa Lee <dh09.lee@samsung.com>
Cc: InKi Dae <inki.dae@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>
drivers/video/backlight/ams369fg06.c
drivers/video/backlight/ld9040.c
drivers/video/backlight/s6e63m0.c