linux/drivers/media/pci/ivtv
Ricardo Ribalda f56d1edbb7 media: ivtv: Factor out schedule functions
Cocci is very confused by unlock-lock a mutex in the middle of a
function.

Factor the schedules out, avoid code duplication and make cocci a bit
happier.

Fix the following cocci warnings:
drivers/media/pci/ivtv/ivtv-fileops.c:223:4-10: preceding lock on line 267
drivers/media/pci/ivtv/ivtv-fileops.c:230:3-9: preceding lock on line 267
drivers/media/pci/ivtv/ivtv-fileops.c:236:4-10: preceding lock on line 267
drivers/media/pci/ivtv/ivtv-fileops.c:245:3-9: preceding lock on line 267
drivers/media/pci/ivtv/ivtv-fileops.c:251:3-9: preceding lock on line 267
drivers/media/pci/ivtv/ivtv-fileops.c:257:3-9: preceding lock on line 267
drivers/media/pci/ivtv/ivtv-fileops.c:272:3-9: preceding lock on line 267
drivers/media/pci/ivtv/ivtv-fileops.c:598:4-10: preceding lock on line 627
drivers/media/pci/ivtv/ivtv-fileops.c:598:4-10: preceding lock on line 689
drivers/media/pci/ivtv/ivtv-fileops.c:606:3-9: preceding lock on line 627
drivers/media/pci/ivtv/ivtv-fileops.c:606:3-9: preceding lock on line 689
drivers/media/pci/ivtv/ivtv-fileops.c:648:3-9: preceding lock on line 627
drivers/media/pci/ivtv/ivtv-fileops.c:648:3-9: preceding lock on line 689
drivers/media/pci/ivtv/ivtv-fileops.c:692:4-10: preceding lock on line 689

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-05-31 13:51:15 +02:00
..
ivtv-alsa-main.c media: ivtv: drop an unused macro 2021-11-22 08:29:50 +00:00
ivtv-alsa-pcm.c
ivtv-alsa-pcm.h
ivtv-alsa.h
ivtv-cards.c
ivtv-cards.h media: ivtv: prevent going past the hw arrays 2021-07-12 09:16:31 +02:00
ivtv-controls.c
ivtv-controls.h
ivtv-driver.c treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
ivtv-driver.h media: ivtv: don't call s_stream(0) if not streaming 2023-11-23 13:36:36 +01:00
ivtv-fileops.c media: ivtv: Factor out schedule functions 2024-05-31 13:51:15 +02:00
ivtv-fileops.h
ivtv-firmware.c
ivtv-firmware.h
ivtv-gpio.c media: xc2028: rename the driver from tuner-xc2028 2022-03-12 16:59:50 +01:00
ivtv-gpio.h
ivtv-i2c.c media: ivtv: prevent going past the hw arrays 2021-07-12 09:16:31 +02:00
ivtv-i2c.h
ivtv-ioctl.c media: v4l: ioctl: Set bus_info in v4l_querycap() 2022-04-24 08:07:08 +01:00
ivtv-ioctl.h
ivtv-irq.c
ivtv-irq.h
ivtv-mailbox.c
ivtv-mailbox.h
ivtv-queue.c media: pci/ivtv: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
ivtv-queue.h media: Remove usage of the deprecated "pci-dma-compat.h" API 2022-03-07 11:50:29 +01:00
ivtv-routing.c
ivtv-routing.h
ivtv-streams.c media: ivtv: don't call s_stream(0) if not streaming 2023-11-23 13:36:36 +01:00
ivtv-streams.h
ivtv-udma.c media: pci: ivtv: Add check for DMA map result 2024-05-31 13:51:15 +02:00
ivtv-udma.h media: Remove usage of the deprecated "pci-dma-compat.h" API 2022-03-07 11:50:29 +01:00
ivtv-vbi.c
ivtv-vbi.h
ivtv-version.h
ivtv-yuv.c media: pci: ivtv: Add check for DMA map result 2024-05-31 13:51:15 +02:00
ivtv-yuv.h
ivtvfb.c media: pci: ivtv: Add check for DMA map result 2024-05-31 13:51:15 +02:00
Kconfig media/ivtvfb: Initialize fb_ops to fbdev I/O-memory helpers 2023-11-29 12:20:34 +01:00
Makefile