Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249186
b: refs/heads/master
c: 541c81a
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Apr 26, 2011
1 parent cf3769f commit e1e6831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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: e1684a048b709f886dcd996901580f8a65b18391
refs/heads/master: 541c81ab4bd40d3a1a1044b4fe265ea2124389fc
14 changes: 5 additions & 9 deletions trunk/drivers/staging/gma500/psb_intel_lvds.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@
#include "psb_powermgmt.h"
#include <linux/pm_runtime.h>

/* MRST defines start */
uint8_t blc_freq;
uint8_t blc_minbrightness;
uint8_t blc_i2caddr;
uint8_t blc_brightnesscmd;
int lvds_backlight; /* restore backlight to this value */

u32 CoreClock;
u32 PWMControlRegFreq;

Expand Down Expand Up @@ -97,8 +90,11 @@ static u32 psb_intel_lvds_get_max_backlight(struct drm_device *dev)
return retVal;
}

/**
/*
* Set LVDS backlight level by I2C command
*
* FIXME: at some point we need to both track this for PM and also
* disable runtime pm on MRST if the brightness is nil (ie blanked)
*/
static int psb_lvds_i2c_set_brightness(struct drm_device *dev,
unsigned int level)
Expand Down Expand Up @@ -131,7 +127,7 @@ static int psb_lvds_i2c_set_brightness(struct drm_device *dev,

if (i2c_transfer(&lvds_i2c_bus->adapter, msgs, 1) == 1) {
DRM_DEBUG("I2C set brightness.(command, value) (%d, %d)\n",
blc_brightnesscmd,
dev_priv->lvds_bl->brightnesscmd,
blc_i2c_brightness);
return 0;
}
Expand Down

0 comments on commit e1e6831

Please sign in to comment.