Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118180
b: refs/heads/master
c: a0601c8
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron authored and Eric Miao committed Oct 30, 2008
1 parent 15ebc9b commit 5ee6542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 56e7d85cf982dda4b453c157f3f64aea1478bc4d
refs/heads/master: a0601c8944dc08c2d349c24bd9c0b09c406229fc
2 changes: 1 addition & 1 deletion trunk/drivers/leds/leds-da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void da903x_led_work(struct work_struct *work)
offset = DA9030_LED_OFFSET(led->id);
val = led->flags & ~0x87;
val |= (led->new_brightness) ? 0x80 : 0; /* EN bit */
val |= (led->new_brightness >> 5) & 0x7; /* PWM<2:0> */
val |= (0x7 - (led->new_brightness >> 5)) & 0x7; /* PWM<2:0> */
da903x_write(led->master, DA9030_LED1_CONTROL + offset, val);
break;
case DA9030_ID_VIBRA:
Expand Down

0 comments on commit 5ee6542

Please sign in to comment.