diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2012-08-08 09:55:55 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-08-23 19:29:25 -0400 |
commit | d112a8163f83752361dd639a9a579ae5cc05c6cf (patch) | |
tree | 53a97ff373718223d0b46cb6d74dc81906058439 /drivers/gpu/drm/gma500/opregion.c | |
parent | 35659715c42b5cd148935e8ebd4e5e8e4e256b96 (diff) |
gma500/cdv: Add eDP support
Introduce the eDP support into the driver.
This has been reworked a bit because kernel driver proper uses encoder/connectors
while the legacy Intel driver uses the old output stuff.
It also diverges on the backlight handling. The legacy Intel driver adds a panel
abstraction based upon the i915 one. It's only really used for backlight bits
and we have a perfectly good backlight abstraction which can extend instead.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
[ported to upstream driver, redid backlight abstraction]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/opregion.c')
-rw-r--r-- | drivers/gpu/drm/gma500/opregion.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/opregion.c b/drivers/gpu/drm/gma500/opregion.c index c430bd424681..ad0d6de938f3 100644 --- a/drivers/gpu/drm/gma500/opregion.c +++ b/drivers/gpu/drm/gma500/opregion.c | |||
@@ -166,8 +166,7 @@ static u32 asle_set_backlight(struct drm_device *dev, u32 bclp) | |||
166 | 166 | ||
167 | if (config_enabled(CONFIG_BACKLIGHT_CLASS_DEVICE)) { | 167 | if (config_enabled(CONFIG_BACKLIGHT_CLASS_DEVICE)) { |
168 | int max = bd->props.max_brightness; | 168 | int max = bd->props.max_brightness; |
169 | bd->props.brightness = bclp * max / 255; | 169 | gma_backlight_set(dev, bclp * max / 255); |
170 | backlight_update_status(bd); | ||
171 | } | 170 | } |
172 | 171 | ||
173 | asle->cblv = (bclp * 0x64) / 0xff | ASLE_CBLV_VALID; | 172 | asle->cblv = (bclp * 0x64) / 0xff | ASLE_CBLV_VALID; |