media: uvcvideo: queue: Simplify spin-lock usage
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Wed, 3 Jan 2018 17:33:49 +0000 (12:33 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Dec 2018 08:11:01 +0000 (03:11 -0500)
commitc50c9c1e659d8de9c13441f243e7938413be6e71
tree591c6963785086202e8627d31d0209136005f1ac
parente829b262a6782ee36ee04e32a2fc7341385ac7fe
media: uvcvideo: queue: Simplify spin-lock usage

Both uvc_start_streaming(), and uvc_stop_streaming() are called from
userspace context, with interrupts enabled. As such, they do not need to
save the IRQ state, and can use spin_lock_irq() and spin_unlock_irq()
respectively.

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>
drivers/media/usb/uvc/uvc_queue.c