diff options
author | Daniel Mack <daniel@zonque.org> | 2018-07-24 20:11:26 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-07-24 20:11:26 +0300 |
commit | 31e1391af210fdbf177966579a83d14e6a4cd828 (patch) | |
tree | eaec8fc47773d19c453f4c583de71e53900e7ff2 /drivers/video/fbdev/pxafb.h | |
parent | a2f2058e3d295fbaa5f681c1651cb5a8df840966 (diff) | |
download | linux-31e1391af210fdbf177966579a83d14e6a4cd828.tar.xz |
video: fbdev: pxafb: Add support for lcd-supply regulator
Optionally obtain a lcd-supply regulator during probe and use it in
__pxafb_lcd_power() to switch the power supply of LCD panels.
This helps boards booted from DT to control such voltages without
callbacks.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/pxafb.h')
-rw-r--r-- | drivers/video/fbdev/pxafb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/fbdev/pxafb.h b/drivers/video/fbdev/pxafb.h index 5dc414e26fc8..b641289c8a99 100644 --- a/drivers/video/fbdev/pxafb.h +++ b/drivers/video/fbdev/pxafb.h @@ -165,6 +165,9 @@ struct pxafb_info { struct notifier_block freq_policy; #endif + struct regulator *lcd_supply; + bool lcd_supply_enabled; + void (*lcd_power)(int, struct fb_var_screeninfo *); void (*backlight_power)(int); |