diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-02-07 13:28:53 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-05 12:26:07 -0500 |
commit | 69a11a32643bda3e7f76af397cb6cd7b32c640f9 (patch) | |
tree | 96d8de1b309441da9ef5510cc6a174e2442223ab /drivers/media/usb/cx231xx/cx231xx-cards.c | |
parent | fff9e818fb523804084cf8456f48ffbc56b70fbe (diff) |
[media] cx231xx: fix big-endian problems
Tested on my big-endian ppc-based test machine.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/cx231xx/cx231xx-cards.c')
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-cards.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c index 62d104b98390..b7b1acd7e7b0 100644 --- a/drivers/media/usb/cx231xx/cx231xx-cards.c +++ b/drivers/media/usb/cx231xx/cx231xx-cards.c | |||
@@ -1189,8 +1189,8 @@ static int cx231xx_usb_probe(struct usb_interface *interface, | |||
1189 | uif = udev->actconfig->interface[dev->current_pcb_config. | 1189 | uif = udev->actconfig->interface[dev->current_pcb_config. |
1190 | hs_config_info[0].interface_info.video_index + 1]; | 1190 | hs_config_info[0].interface_info.video_index + 1]; |
1191 | 1191 | ||
1192 | dev->video_mode.end_point_addr = le16_to_cpu(uif->altsetting[0]. | 1192 | dev->video_mode.end_point_addr = uif->altsetting[0]. |
1193 | endpoint[isoc_pipe].desc.bEndpointAddress); | 1193 | endpoint[isoc_pipe].desc.bEndpointAddress; |
1194 | 1194 | ||
1195 | dev->video_mode.num_alt = uif->num_altsetting; | 1195 | dev->video_mode.num_alt = uif->num_altsetting; |
1196 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", | 1196 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", |
@@ -1223,8 +1223,8 @@ static int cx231xx_usb_probe(struct usb_interface *interface, | |||
1223 | vanc_index + 1]; | 1223 | vanc_index + 1]; |
1224 | 1224 | ||
1225 | dev->vbi_mode.end_point_addr = | 1225 | dev->vbi_mode.end_point_addr = |
1226 | le16_to_cpu(uif->altsetting[0].endpoint[isoc_pipe].desc. | 1226 | uif->altsetting[0].endpoint[isoc_pipe].desc. |
1227 | bEndpointAddress); | 1227 | bEndpointAddress; |
1228 | 1228 | ||
1229 | dev->vbi_mode.num_alt = uif->num_altsetting; | 1229 | dev->vbi_mode.num_alt = uif->num_altsetting; |
1230 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", | 1230 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", |
@@ -1258,8 +1258,8 @@ static int cx231xx_usb_probe(struct usb_interface *interface, | |||
1258 | hanc_index + 1]; | 1258 | hanc_index + 1]; |
1259 | 1259 | ||
1260 | dev->sliced_cc_mode.end_point_addr = | 1260 | dev->sliced_cc_mode.end_point_addr = |
1261 | le16_to_cpu(uif->altsetting[0].endpoint[isoc_pipe].desc. | 1261 | uif->altsetting[0].endpoint[isoc_pipe].desc. |
1262 | bEndpointAddress); | 1262 | bEndpointAddress; |
1263 | 1263 | ||
1264 | dev->sliced_cc_mode.num_alt = uif->num_altsetting; | 1264 | dev->sliced_cc_mode.num_alt = uif->num_altsetting; |
1265 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", | 1265 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", |
@@ -1294,8 +1294,8 @@ static int cx231xx_usb_probe(struct usb_interface *interface, | |||
1294 | ts1_index + 1]; | 1294 | ts1_index + 1]; |
1295 | 1295 | ||
1296 | dev->ts1_mode.end_point_addr = | 1296 | dev->ts1_mode.end_point_addr = |
1297 | le16_to_cpu(uif->altsetting[0].endpoint[isoc_pipe]. | 1297 | uif->altsetting[0].endpoint[isoc_pipe]. |
1298 | desc.bEndpointAddress); | 1298 | desc.bEndpointAddress; |
1299 | 1299 | ||
1300 | dev->ts1_mode.num_alt = uif->num_altsetting; | 1300 | dev->ts1_mode.num_alt = uif->num_altsetting; |
1301 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", | 1301 | cx231xx_info("EndPoint Addr 0x%x, Alternate settings: %i\n", |