Skip to contentSkip to conversation

backlight/ld9040.c: regulator control in the driver

PATCH New Donghwa Lee 1 participant 1 message Dec 9, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 backlight/ld9040.c: regulator control in the driver

This patch supports regulator power control in the driver.
Current ld9040 driver was controlled power on/off sequence by callback function in the board file. But, by doing this, there's no need to register lcd power on/off callback function in the board file.

changes since v2:
- bind regulators as bulk data
- in case of failure to get regulator, free regulator bulk data

---
 drivers/video/backlight/ld9040.c |   71
+++++++++++++++++++++++++++++++------
 1 files changed, 59 insertions(+), 12 deletions(-)
(quoted diff) +0 -0

b/drivers/video/backlight/ld9040.c
index da9a5ce..133ddff 100644

drivers/video/backlight/ld9040.c +58 -12

108 lines not on this page · raw message

*spi)
ld9040_power(lcd, FB_BLANK_POWERDOWN);
backlight_device_unregister(lcd->bd);
lcd_device_unregister(lcd->ld);
+ regulator_bulk_free(ARRAY_SIZE(supplies), supplies);
kfree(lcd);

return 0;

Signature · 1 line
1.7.4.1