aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-11-14 16:19:56 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:34 -0500
commit292ee46107abc213fc073298aa6a838a595d2b78 (patch)
tree7e90b19db535c9efad73950d22f77eb7dd8752a9 /drivers/media/dvb
parentb3d8466fd0e63fd58096f195cbe5ec2444d3fd60 (diff)
V4L/DVB (9637): usb vendor_ids/product_ids are __le16
Noticed by sparse: drivers/media/dvb/dvb-usb/af9015.c:756:25: warning: restricted __le16 degrades to integer drivers/media/dvb/dvb-usb/af9015.c:744:28: warning: restricted __le16 degrades to integer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/af9015.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index f93a8c739bd1..6076147b9cd4 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -736,7 +736,7 @@ static int af9015_read_config(struct usb_device *udev)
736 } 736 }
737 } else { 737 } else {
738 switch (udev->descriptor.idVendor) { 738 switch (udev->descriptor.idVendor) {
739 case USB_VID_LEADTEK: 739 case cpu_to_le16(USB_VID_LEADTEK):
740 af9015_properties[i].rc_key_map = 740 af9015_properties[i].rc_key_map =
741 af9015_rc_keys_leadtek; 741 af9015_rc_keys_leadtek;
742 af9015_properties[i].rc_key_map_size = 742 af9015_properties[i].rc_key_map_size =
@@ -746,9 +746,9 @@ static int af9015_read_config(struct usb_device *udev)
746 af9015_config.ir_table_size = 746 af9015_config.ir_table_size =
747 ARRAY_SIZE(af9015_ir_table_leadtek); 747 ARRAY_SIZE(af9015_ir_table_leadtek);
748 break; 748 break;
749 case USB_VID_VISIONPLUS: 749 case cpu_to_le16(USB_VID_VISIONPLUS):
750 if (udev->descriptor.idProduct == 750 if (udev->descriptor.idProduct ==
751 USB_PID_AZUREWAVE_AD_TU700) { 751 cpu_to_le16(USB_PID_AZUREWAVE_AD_TU700)) {
752 af9015_properties[i].rc_key_map = 752 af9015_properties[i].rc_key_map =
753 af9015_rc_keys_twinhan; 753 af9015_rc_keys_twinhan;
754 af9015_properties[i].rc_key_map_size = 754 af9015_properties[i].rc_key_map_size =
@@ -759,7 +759,7 @@ static int af9015_read_config(struct usb_device *udev)
759 ARRAY_SIZE(af9015_ir_table_twinhan); 759 ARRAY_SIZE(af9015_ir_table_twinhan);
760 } 760 }
761 break; 761 break;
762 case USB_VID_KWORLD_2: 762 case cpu_to_le16(USB_VID_KWORLD_2):
763 /* TODO: use correct rc keys */ 763 /* TODO: use correct rc keys */
764 af9015_properties[i].rc_key_map = 764 af9015_properties[i].rc_key_map =
765 af9015_rc_keys_twinhan; 765 af9015_rc_keys_twinhan;
@@ -772,7 +772,7 @@ static int af9015_read_config(struct usb_device *udev)
772 /* Check USB manufacturer and product strings and try 772 /* Check USB manufacturer and product strings and try
773 to determine correct remote in case of chip vendor 773 to determine correct remote in case of chip vendor
774 reference IDs are used. */ 774 reference IDs are used. */
775 case USB_VID_AFATECH: 775 case cpu_to_le16(USB_VID_AFATECH):
776 memset(manufacturer, 0, sizeof(manufacturer)); 776 memset(manufacturer, 0, sizeof(manufacturer));
777 usb_string(udev, udev->descriptor.iManufacturer, 777 usb_string(udev, udev->descriptor.iManufacturer,
778 manufacturer, sizeof(manufacturer)); 778 manufacturer, sizeof(manufacturer));
@@ -800,7 +800,7 @@ static int af9015_read_config(struct usb_device *udev)
800 ARRAY_SIZE(af9015_ir_table_msi); 800 ARRAY_SIZE(af9015_ir_table_msi);
801 } 801 }
802 break; 802 break;
803 case USB_VID_AVERMEDIA: 803 case cpu_to_le16(USB_VID_AVERMEDIA):
804 af9015_properties[i].rc_key_map = 804 af9015_properties[i].rc_key_map =
805 af9015_rc_keys_avermedia; 805 af9015_rc_keys_avermedia;
806 af9015_properties[i].rc_key_map_size = 806 af9015_properties[i].rc_key_map_size =