summaryrefslogtreecommitdiffstats
path: root/include/video/platform_lcd.h
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2013-04-30 01:17:58 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 03:28:18 +0200
commit46e1915eef9c0e935a09808a30e167abb857b4ec (patch)
tree5ebca88c181f8cda4ea901d56c83814eba3876ec /include/video/platform_lcd.h
parentbacklight: ili922x: use spi_set_drvdata() (diff)
downloadlinux-46e1915eef9c0e935a09808a30e167abb857b4ec.tar.xz
linux-46e1915eef9c0e935a09808a30e167abb857b4ec.zip
drivers/video/backlight/platform_lcd.c: introduce probe callback
Platform LCD devices may need to do some device-specific initialization before they can be used (regulator or GPIO setup, for example), but currently the driver does not support any way of doing this. This patch adds a probe() callback to plat_lcd_data which platform LCD devices can set to indicate that device-specific initialization is needed. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Reviewed-by: Doug Anderson <dianders@chromium.org> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/video/platform_lcd.h')
-rw-r--r--include/video/platform_lcd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/video/platform_lcd.h b/include/video/platform_lcd.h
index ad3bdfe743b2..23864b284147 100644
--- a/include/video/platform_lcd.h
+++ b/include/video/platform_lcd.h
@@ -15,6 +15,7 @@ struct plat_lcd_data;
struct fb_info;
struct plat_lcd_data {
+ int (*probe)(struct plat_lcd_data *);
void (*set_power)(struct plat_lcd_data *, unsigned int power);
int (*match_fb)(struct plat_lcd_data *, struct fb_info *);
};