linux_dsm_epyc7002/drivers/media/usb
Kieran Bingham ece41454c6 media: uvcvideo: Abstract streaming object lifetime
The streaming object is a key part of handling the UVC device. Although
not critical, we are currently missing a call to destroy the mutex on
clean up paths, and we are due to extend the objects complexity in the
near future.

Facilitate easy management of a stream object by creating a pair of
functions to handle creating and destroying the allocation. The new
uvc_stream_delete() function also performs the missing mutex_destroy()
operation.

Previously a failed streaming object allocation would cause
uvc_parse_streaming() to return -EINVAL, which is inappropriate. If the
constructor failes, we will instead return -ENOMEM.

While we're here, fix the trivial spelling error in the function banner
of uvc_delete().

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-12-05 03:13:48 -05:00
..
airspy media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
as102 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
au0828 media: vidioc_cropcap -> vidioc_g_pixelaspect 2018-11-20 13:57:21 -05:00
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
cpia2 media: cropcap/g_selection split 2018-11-20 13:37:18 -05:00
cx231xx media: vidioc_cropcap -> vidioc_g_pixelaspect 2018-11-20 13:57:21 -05:00
dvb-usb media: dib0700: fix spelling mistake "Amplifyer" -> "Amplifier" 2018-12-03 13:23:46 -05:00
dvb-usb-v2 media: usb: Use kmemdup instead of duplicating its function. 2018-12-03 13:27:17 -05:00
em28xx media: em28xx: fix spelling mistake, "Cinnergy" -> "Cinergy" 2018-12-03 14:25:53 -05:00
go7007 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
gspca media: gspca: sq930x: use GFP_KERNEL in sd_dq_callback() 2018-09-12 08:01:30 -04:00
hackrf media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
hdpvr media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
msi2500 media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
pulse8-cec media: pulse8-cec: return 0 when invalidating the logical address 2018-11-23 05:49:11 -05:00
pvrusb2 media: vidioc_cropcap -> vidioc_g_pixelaspect 2018-11-20 13:57:21 -05:00
pwc media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
rainshadow-cec media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
s2255 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
siano media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
stk1160 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
stkwebcam media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
tm6000 media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
ttusb-budget media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
ttusb-dec media: dvb: represent min/max/step/tolerance freqs in Hz 2018-08-02 18:10:48 -04:00
usbtv media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
usbvision media: usbvision: remove time_in_irq 2018-09-12 08:02:25 -04:00
uvc media: uvcvideo: Abstract streaming object lifetime 2018-12-05 03:13:48 -05:00
zr364xx media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00