Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236272
b: refs/heads/master
c: 487e873
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent 3aa2ef6 commit 91dba78
Show file tree
Hide file tree
Showing 10 changed files with 366 additions and 773 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: 2145cff54f512907a4c4fa906f957fa62406e558
refs/heads/master: 487e873dd3f8d7ede7635896e19376ef78157721
10 changes: 6 additions & 4 deletions trunk/drivers/staging/gma500/psb_bl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* psb backlight using HAL
* psb backlight interface
*
* Copyright (c) 2009, Intel Corporation.
*
Expand Down Expand Up @@ -73,6 +73,8 @@ int psb_get_brightness(struct backlight_device *bd)
DRM_DEBUG_DRIVER("brightness = 0x%x\n", psb_brightness);

/* return locally cached var instead of HW read (due to DPST etc.) */
/* FIXME: ideally return actual value in case firmware fiddled with
it */
return psb_brightness;
}

Expand All @@ -83,7 +85,7 @@ static const struct backlight_ops psb_ops = {

static int device_backlight_init(struct drm_device *dev)
{
unsigned long CoreClock;
unsigned long core_clock;
/* u32 bl_max_freq; */
/* unsigned long value; */
u16 bl_max_freq;
Expand All @@ -102,9 +104,9 @@ static int device_backlight_init(struct drm_device *dev)
blc_brightnesscmd = dev_priv->lvds_bl->brightnesscmd;
blc_type = dev_priv->lvds_bl->type;

CoreClock = dev_priv->core_freq;
core_clock = dev_priv->core_freq;

value = (CoreClock * MHz) / BLC_PWM_FREQ_CALC_CONSTANT;
value = (core_clock * MHz) / BLC_PWM_FREQ_CALC_CONSTANT;
value *= blc_pwm_precision_factor;
value /= bl_max_freq;
value /= blc_pwm_precision_factor;
Expand Down
Loading

0 comments on commit 91dba78

Please sign in to comment.