summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-10-04 16:01:50 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-15 18:00:38 +0200
commit336d30ed131bd0b135577ef5c263fe40d2e5d8d3 (patch)
tree2508794ac42712bdfd3adfb00fce64cab628d747
parent[media] cx231xx: fix sparse warnings (diff)
downloadlinux-336d30ed131bd0b135577ef5c263fe40d2e5d8d3.tar.xz
linux-336d30ed131bd0b135577ef5c263fe40d2e5d8d3.zip
[media] tlg2300: fix sparse warning
drivers/media/usb/tlg2300/pd-main.c:235:25: warning: incorrect type in assignment (different base types) Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/usb/tlg2300/pd-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/tlg2300/pd-main.c b/drivers/media/usb/tlg2300/pd-main.c
index 95f94e5aa66d..3316caa4733b 100644
--- a/drivers/media/usb/tlg2300/pd-main.c
+++ b/drivers/media/usb/tlg2300/pd-main.c
@@ -232,7 +232,7 @@ static int firmware_download(struct usb_device *udev)
goto out;
}
- max_packet_size = udev->ep_out[0x1]->desc.wMaxPacketSize;
+ max_packet_size = le16_to_cpu(udev->ep_out[0x1]->desc.wMaxPacketSize);
log("\t\t download size : %d", (int)max_packet_size);
for (offset = 0; offset < fwlength; offset += max_packet_size) {