summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRob Herring <r.herring@freescale.com>2008-03-25 15:38:20 -0500
committerDaniel Schaeffer <daniel.schaeffer@timesys.com>2008-08-25 15:20:54 -0400
commitce20ff5e9d69a9b36e0ea1594edb23e1b48b7081 (patch)
tree03a978a40aeff4dc478665c29e16b4db8112f1d5 /arch
parent13577e1914107c6190eaed90b5c6fa52901bf279 (diff)
ENGR00069928: Add wm8350 bl check_fb
Add check_fb function to wm8350 backlight driver, so that only fb0 blank/unblank will change the backlight state. Signed-off-by: Rob Herring <r.herring@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx37/mx37_3stack_pmic_wm8350.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mx37/mx37_3stack_pmic_wm8350.c b/arch/arm/mach-mx37/mx37_3stack_pmic_wm8350.c
index edc2f7bbdef0..ce5ed6dbadc6 100644
--- a/arch/arm/mach-mx37/mx37_3stack_pmic_wm8350.c
+++ b/arch/arm/mach-mx37/mx37_3stack_pmic_wm8350.c
@@ -232,6 +232,11 @@ static void wm8350_nop_release(struct device *dev)
/* Nothing */
}
+static int wm8350_check_fb(struct fb_info *info)
+{
+ return (to_platform_device(info->device)->id == 0);
+}
+
struct wm8350_bl_platform_data wm8350_bl_data = {
.isink = WM8350_ISINK_A,
.dcdc = WM8350_DCDC_5,
@@ -240,6 +245,7 @@ struct wm8350_bl_platform_data wm8350_bl_data = {
.max_brightness = 63,
.power = FB_BLANK_UNBLANK,
.brightness = 50,
+ .check_fb = wm8350_check_fb,
};
static struct platform_device mxc_wm8350_devices[] = {