aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2008-10-06 12:57:45 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-13 05:15:48 -0400
commit541dfa87f9285b2ff7e703a5eab81ad821de7f6e (patch)
tree9bdc5232cfb2144da9c74b69b199411b47c7f98f
parentd4e80beae1eef31df5749516ecb36f0fb366daf1 (diff)
V4L/DVB (9146): af901x: fix some compiler errors and warnings
- cast firmware data to u8 - remove cpu_to_le16 from switch-case label Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-usb/af9015.c12
-rw-r--r--drivers/media/dvb/frontends/af9013.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index 8c183e55daa4..67b13062a148 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -661,7 +661,7 @@ static int af9015_download_firmware(struct usb_device *udev,
661 len = remainder; 661 len = remainder;
662 662
663 req.data_len = len; 663 req.data_len = len;
664 req.data = (fw->data + i * FW_PACKET_MAX_DATA); 664 req.data = (u8 *)(fw->data + i * FW_PACKET_MAX_DATA);
665 req.addr = addr; 665 req.addr = addr;
666 addr += FW_PACKET_MAX_DATA; 666 addr += FW_PACKET_MAX_DATA;
667 667
@@ -742,7 +742,7 @@ static int af9015_read_config(struct usb_device *udev)
742 } 742 }
743 } else { 743 } else {
744 switch (udev->descriptor.idVendor) { 744 switch (udev->descriptor.idVendor) {
745 case cpu_to_le16(USB_VID_LEADTEK): 745 case USB_VID_LEADTEK:
746 af9015_properties[i].rc_key_map = 746 af9015_properties[i].rc_key_map =
747 af9015_rc_keys_leadtek; 747 af9015_rc_keys_leadtek;
748 af9015_properties[i].rc_key_map_size = 748 af9015_properties[i].rc_key_map_size =
@@ -752,9 +752,9 @@ static int af9015_read_config(struct usb_device *udev)
752 af9015_config.ir_table_size = 752 af9015_config.ir_table_size =
753 ARRAY_SIZE(af9015_ir_table_leadtek); 753 ARRAY_SIZE(af9015_ir_table_leadtek);
754 break; 754 break;
755 case cpu_to_le16(USB_VID_VISIONPLUS): 755 case USB_VID_VISIONPLUS:
756 if (udev->descriptor.idProduct == 756 if (udev->descriptor.idProduct ==
757 cpu_to_le16(USB_PID_AZUREWAVE_AD_TU700)) { 757 USB_PID_AZUREWAVE_AD_TU700) {
758 af9015_properties[i].rc_key_map = 758 af9015_properties[i].rc_key_map =
759 af9015_rc_keys_twinhan; 759 af9015_rc_keys_twinhan;
760 af9015_properties[i].rc_key_map_size = 760 af9015_properties[i].rc_key_map_size =
@@ -765,7 +765,7 @@ static int af9015_read_config(struct usb_device *udev)
765 ARRAY_SIZE(af9015_ir_table_twinhan); 765 ARRAY_SIZE(af9015_ir_table_twinhan);
766 } 766 }
767 break; 767 break;
768 case cpu_to_le16(USB_VID_KWORLD_2): 768 case USB_VID_KWORLD_2:
769 /* TODO: use correct rc keys */ 769 /* TODO: use correct rc keys */
770 af9015_properties[i].rc_key_map = 770 af9015_properties[i].rc_key_map =
771 af9015_rc_keys_twinhan; 771 af9015_rc_keys_twinhan;
@@ -778,7 +778,7 @@ static int af9015_read_config(struct usb_device *udev)
778 /* Check USB manufacturer and product strings and try 778 /* Check USB manufacturer and product strings and try
779 to determine correct remote in case of chip vendor 779 to determine correct remote in case of chip vendor
780 reference IDs are used. */ 780 reference IDs are used. */
781 case cpu_to_le16(USB_VID_AFATECH): 781 case USB_VID_AFATECH:
782 memset(manufacturer, 0, sizeof(manufacturer)); 782 memset(manufacturer, 0, sizeof(manufacturer));
783 usb_string(udev, udev->descriptor.iManufacturer, 783 usb_string(udev, udev->descriptor.iManufacturer,
784 manufacturer, sizeof(manufacturer)); 784 manufacturer, sizeof(manufacturer));
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c
index 0d2a0ad2bc4d..21c1060cf10e 100644
--- a/drivers/media/dvb/frontends/af9013.c
+++ b/drivers/media/dvb/frontends/af9013.c
@@ -1490,7 +1490,7 @@ static int af9013_download_firmware(struct af9013_state *state)
1490 if (i == packets) /* set size of the last packet */ 1490 if (i == packets) /* set size of the last packet */
1491 len = remainder; 1491 len = remainder;
1492 1492
1493 data = (fw->data + i * FW_PACKET_MAX_DATA); 1493 data = (u8 *)(fw->data + i * FW_PACKET_MAX_DATA);
1494 ret = af9013_write_ofsm_regs(state, addr, data, len); 1494 ret = af9013_write_ofsm_regs(state, addr, data, len);
1495 addr += FW_PACKET_MAX_DATA; 1495 addr += FW_PACKET_MAX_DATA;
1496 1496