summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-05-21 00:31:01 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-05-21 00:31:01 +0000
commit8f9fab33cee046fa5d38d1e0b6d08b7aaa11d62e (patch)
tree0a366736c1144d16e2ef642d156028b5d50edfa3 /linux/drivers/media/dvb
parentef948745e7baa85547778eff9d3743d6c1092e89 (diff)
downloadmediapointer-dvb-s2-8f9fab33cee046fa5d38d1e0b6d08b7aaa11d62e.tar.gz
mediapointer-dvb-s2-8f9fab33cee046fa5d38d1e0b6d08b7aaa11d62e.tar.bz2
endianness fix in flexcop-usb.c
From: Al Viro <viro@ftp.linux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/b2c2/flexcop-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/b2c2/flexcop-usb.c b/linux/drivers/media/dvb/b2c2/flexcop-usb.c
index 683217b0f..d523dd5bf 100644
--- a/linux/drivers/media/dvb/b2c2/flexcop-usb.c
+++ b/linux/drivers/media/dvb/b2c2/flexcop-usb.c
@@ -383,7 +383,7 @@ static void flexcop_usb_transfer_exit(struct flexcop_usb *fc_usb)
static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
{
- u16 frame_size = fc_usb->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize;
+ u16 frame_size = le16_to_cpu(fc_usb->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize);
int bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * frame_size,i,j,ret;
int buffer_offset = 0;