Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196314
b: refs/heads/master
c: 76d17e6
h: refs/heads/master
v: v3
  • Loading branch information
Bruno Prémont authored and Jiri Kosina committed Apr 26, 2010
1 parent 1a10209 commit e0dbb1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 5435f2818ea08bcb381dcd2a99b1607b2a42f329
refs/heads/master: 76d17e6ca30204532c631d092de41febb3f76b77
8 changes: 3 additions & 5 deletions trunk/drivers/hid/hid-picolcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,16 +1196,14 @@ static int picolcd_check_version(struct hid_device *hdev)
}

if (verinfo->raw_size == 2) {
data->version[0] = verinfo->raw_data[1];
data->version[1] = verinfo->raw_data[0];
if (data->status & PICOLCD_BOOTLOADER) {
dev_info(&hdev->dev, "PicoLCD, bootloader version %d.%d\n",
verinfo->raw_data[0], verinfo->raw_data[1]);
data->version[0] = verinfo->raw_data[0];
data->version[1] = verinfo->raw_data[1];
verinfo->raw_data[1], verinfo->raw_data[0]);
} else {
dev_info(&hdev->dev, "PicoLCD, firmware version %d.%d\n",
verinfo->raw_data[1], verinfo->raw_data[0]);
data->version[0] = verinfo->raw_data[1];
data->version[1] = verinfo->raw_data[0];
}
} else {
dev_err(&hdev->dev, "confused, got unexpected version response from PicoLCD\n");
Expand Down

0 comments on commit e0dbb1c

Please sign in to comment.