summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-panel.c
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2011-09-13 16:49:40 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:42 -0800
commit9367c943457ca10e1e90a9df7f8e8da0d23ef810 (patch)
tree9551d758959161bb4197b94618eab94ec39822c6 /arch/arm/mach-tegra/board-enterprise-panel.c
parent0dc39eee30a6620559e8d23c0a13cf19a6b4993c (diff)
ARM: tegra: enterprise: Fix backlight toggling on Enterprise.
Bug 873860 Reviewed-on: http://git-master/r/52178 Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Reviewed-by: Robert Morell <rmorell@nvidia.com> (cherry picked from commit 17efce7b49626cde29af8db695b18d4ab3db9099) Change-Id: Ib168ef67c9cd7f6114da87da5a57c88ddd3abbb6 Reviewed-on: http://git-master/r/61608 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R184973927477f12329dbd1e8294e3d366dddf746
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-panel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-panel.c b/arch/arm/mach-tegra/board-enterprise-panel.c
index 2d749b3d3c79..825e69f74215 100644
--- a/arch/arm/mach-tegra/board-enterprise-panel.c
+++ b/arch/arm/mach-tegra/board-enterprise-panel.c
@@ -124,6 +124,8 @@ static int enterprise_backlight_notify(struct device *unused, int brightness)
return brightness;
}
+static int enterprise_disp1_check_fb(struct device *dev, struct fb_info *info);
+
/*
* In case which_pwm is TEGRA_PWM_PM0,
* gpio_conf_to_sfio should be TEGRA_GPIO_PW0: set LCD_CS1_N pin to SFIO
@@ -141,6 +143,8 @@ static struct platform_tegra_pwm_backlight_data enterprise_disp1_backlight_data
.period = 0xFF,
.clk_div = 0x3FF,
.clk_select = 0,
+ /* Only toggle backlight on fb blank notifications for disp1 */
+ .check_fb = enterprise_disp1_check_fb,
};
static struct platform_device enterprise_disp1_backlight_device = {
@@ -637,6 +641,11 @@ static struct nvhost_device enterprise_disp1_device = {
},
};
+static int enterprise_disp1_check_fb(struct device *dev, struct fb_info *info)
+{
+ return info->device == &enterprise_disp1_device.dev;
+}
+
static struct nvhost_device enterprise_disp2_device = {
.name = "tegradc",
.id = 1,