Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124227
b: refs/heads/master
c: c58701b
h: refs/heads/master
i:
  124225: 75b78e8
  124223: 7e782cc
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent c7d1596 commit 812c93a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 05583625710dfd75880a6cbb68292929d1d4c33c
refs/heads/master: c58701b26340176a19ea400fed41ad8263dcf860
12 changes: 6 additions & 6 deletions trunk/drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ static int af9015_read_config(struct usb_device *udev)
break;
}
} else {
switch (udev->descriptor.idVendor) {
case cpu_to_le16(USB_VID_LEADTEK):
switch (le16_to_cpu(udev->descriptor.idVendor)) {
case USB_VID_LEADTEK:
af9015_properties[i].rc_key_map =
af9015_rc_keys_leadtek;
af9015_properties[i].rc_key_map_size =
Expand All @@ -756,7 +756,7 @@ static int af9015_read_config(struct usb_device *udev)
af9015_config.ir_table_size =
ARRAY_SIZE(af9015_ir_table_leadtek);
break;
case cpu_to_le16(USB_VID_VISIONPLUS):
case USB_VID_VISIONPLUS:
if (udev->descriptor.idProduct ==
cpu_to_le16(USB_PID_AZUREWAVE_AD_TU700)) {
af9015_properties[i].rc_key_map =
Expand All @@ -769,7 +769,7 @@ static int af9015_read_config(struct usb_device *udev)
ARRAY_SIZE(af9015_ir_table_twinhan);
}
break;
case cpu_to_le16(USB_VID_KWORLD_2):
case USB_VID_KWORLD_2:
/* TODO: use correct rc keys */
af9015_properties[i].rc_key_map =
af9015_rc_keys_twinhan;
Expand All @@ -782,7 +782,7 @@ static int af9015_read_config(struct usb_device *udev)
/* Check USB manufacturer and product strings and try
to determine correct remote in case of chip vendor
reference IDs are used. */
case cpu_to_le16(USB_VID_AFATECH):
case USB_VID_AFATECH:
memset(manufacturer, 0, sizeof(manufacturer));
usb_string(udev, udev->descriptor.iManufacturer,
manufacturer, sizeof(manufacturer));
Expand Down Expand Up @@ -810,7 +810,7 @@ static int af9015_read_config(struct usb_device *udev)
ARRAY_SIZE(af9015_ir_table_msi);
}
break;
case cpu_to_le16(USB_VID_AVERMEDIA):
case USB_VID_AVERMEDIA:
af9015_properties[i].rc_key_map =
af9015_rc_keys_avermedia;
af9015_properties[i].rc_key_map_size =
Expand Down

0 comments on commit 812c93a

Please sign in to comment.