[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>
This commit is contained in:
Hans Verkuil 2013-10-04 11:01:50 -03:00 committed by Mauro Carvalho Chehab
parent eb9678c4b0
commit 336d30ed13
1 changed files with 1 additions and 1 deletions

View File

@ -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) {