Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307395
b: refs/heads/master
c: fcf9220
h: refs/heads/master
i:
  307393: a4361e6
  307391: 176b22e
v: v3
  • Loading branch information
Dan Carpenter authored and Dave Airlie committed May 17, 2012
1 parent 5a05b0f commit 4eaa362
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce0679136678a58cbeca40acd84b6a0462637454
refs/heads/master: fcf92202e7bc2e8513ae045e3ec61e79c1c9e690
12 changes: 6 additions & 6 deletions trunk/drivers/gpu/drm/gma500/opregion.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ static u32 asle_set_backlight(struct drm_device *dev, u32 bclp)
struct drm_psb_private *dev_priv = dev->dev_private;
struct opregion_asle *asle = dev_priv->opregion.asle;
struct backlight_device *bd = dev_priv->backlight_device;
u32 max;

DRM_DEBUG_DRIVER("asle set backlight %x\n", bclp);

Expand All @@ -163,11 +162,12 @@ static u32 asle_set_backlight(struct drm_device *dev, u32 bclp)
if (bclp > 255)
return ASLE_BACKLIGHT_FAILED;

#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
max = bd->props.max_brightness;
bd->props.brightness = bclp * max / 255;
backlight_update_status(bd);
#endif
if (config_enabled(CONFIG_BACKLIGHT_CLASS_DEVICE)) {
int max = bd->props.max_brightness;
bd->props.brightness = bclp * max / 255;
backlight_update_status(bd);
}

asle->cblv = (bclp * 0x64) / 0xff | ASLE_CBLV_VALID;

return 0;
Expand Down

0 comments on commit 4eaa362

Please sign in to comment.