Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287420
b: refs/heads/master
c: 635032c
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Paalanen authored and Greg Kroah-Hartman committed Feb 8, 2012
1 parent 8013abc commit d6e66d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 3c1b86f17068cf6476fb2d022b9c8b44dedea2e5
refs/heads/master: 635032cb397b396241372fa0ff36ae758e658b23
10 changes: 8 additions & 2 deletions trunk/drivers/staging/asus_oled/asus_oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,14 @@ static void send_data(struct asus_oled_dev *odev)

static int append_values(struct asus_oled_dev *odev, uint8_t val, size_t count)
{
while (count-- > 0 && val) {
odev->last_val = val;

if (val == 0) {
odev->buf_offs += count;
return 0;
}

while (count-- > 0) {
size_t x = odev->buf_offs % odev->width;
size_t y = odev->buf_offs / odev->width;
size_t i;
Expand Down Expand Up @@ -406,7 +413,6 @@ static int append_values(struct asus_oled_dev *odev, uint8_t val, size_t count)
;
}

odev->last_val = val;
odev->buf_offs++;
}

Expand Down

0 comments on commit d6e66d4

Please sign in to comment.