diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2013-04-30 01:18:03 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 03:28:18 +0200 |
commit | 0b8185733966c1863b6b90ca2697327118ce5032 (patch) | |
tree | 746742b89c6eb0b9f20058139afc2ec93c3bd122 /drivers/video/bfin-lq035q1-fb.c | |
parent | backlight: lp855x: convert a type of device name (diff) | |
download | linux-0b8185733966c1863b6b90ca2697327118ce5032.tar.xz linux-0b8185733966c1863b6b90ca2697327118ce5032.zip |
backlight: lp855x: move backlight mode platform data
The brightness of LP855x devices is controlled by I2C register or PWM
input . This mode was selected through the platform data, but it can be
chosen by the driver internally without platform data configuration.
How to decide the control mode:
If the PWM period has specific value, the mode is PWM input.
On the other hand, the mode is register-based.
This mode selection is done on the _probe().
Move 'mode' from a header file to the driver private data structure,
'lp855 x'. And correlated code was replaced.
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/bfin-lq035q1-fb.c')
0 files changed, 0 insertions, 0 deletions