summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/uvc_v4l2.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-05-10 11:21:11 +0400
committerOlof Johansson <olof@lixom.net>2012-05-10 11:23:17 +0400
commitcaafc71b1a25096ef74904adb19d37e5c6a282dc (patch)
tree17f0602c6e04fdec78c50a1c2cbd70a0303ed2c6 /drivers/usb/gadget/uvc_v4l2.c
parentaf568679f51de779d0e9ad7d8360dc7727da546d (diff)
parentbcd59b0f0c14b0584c1213ee3b53d5f84517c419 (diff)
downloadlinux-caafc71b1a25096ef74904adb19d37e5c6a282dc.tar.xz
Merge tag 'v3.5-soc' of git://gitorious.org/linux-davinci/linux-davinci into next/drivers
DaVinci SoC updates for v3.5 This pull request updates the DaVinci SoC support to implement DEBUG_LL port choice and optimizes the DMA ISR by removing unnecessary register reads. * tag 'v3.5-soc' of git://gitorious.org/linux-davinci/linux-davinci: ARM: davinci: optimize the DMA ISR ARM: davinci: implement DEBUG_LL port choice + sync with Linux 3.4-rc6 Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/usb/gadget/uvc_v4l2.c')
-rw-r--r--drivers/usb/gadget/uvc_v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/uvc_v4l2.c b/drivers/usb/gadget/uvc_v4l2.c
index f6e083b50191..54d7ca559cb2 100644
--- a/drivers/usb/gadget/uvc_v4l2.c
+++ b/drivers/usb/gadget/uvc_v4l2.c
@@ -39,7 +39,7 @@ uvc_send_response(struct uvc_device *uvc, struct uvc_request_data *data)
if (data->length < 0)
return usb_ep_set_halt(cdev->gadget->ep0);
- req->length = min(uvc->event_length, data->length);
+ req->length = min_t(unsigned int, uvc->event_length, data->length);
req->zero = data->length < uvc->event_length;
req->dma = DMA_ADDR_INVALID;