linux-stable/drivers/media
Takashi Iwai 44f08b67f2 media: solo6x10: Convert to generic PCM copy ops
This patch converts the solo6x10 driver code to use the new unified
PCM copy callback.  It's a straightforward conversion from *_user() to
*_iter() variants.  As copy_to_iter() updates the internal offest at
each write, we can drop the dst counter update in the loop, too.

Note that copy_to_iter() returns the copied bytes, hence the error
condition is adjusted accordingly.

Acked-by: Ismael Luceno <ismael@iodev.co.uk>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Bluecherry Maintainers <maintainers@bluecherrydvr.com>
Cc: Anton Sviridenko <anton@corp.bluecherry.net>
Cc: Andrey Utkin <andrey_utkin@fastmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org
Link: https://lore.kernel.org/r/20230815190136.8987-18-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2023-08-18 12:18:57 +02:00
..
cec media: cec: i2c: ch7322: also select REGMAP 2023-06-28 11:10:05 +02:00
common media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-05-25 16:21:20 +02:00
dvb-core lib/math: Move dvb_math.c into lib/math/int_log.c 2023-07-09 22:47:48 +01:00
dvb-frontends lib/math: Move dvb_math.c into lib/math/int_log.c 2023-07-09 22:47:48 +01:00
firewire
i2c media: tc358746: select CONFIG_GENERIC_PHY 2023-06-28 11:08:42 +02:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc
pci media: solo6x10: Convert to generic PCM copy ops 2023-08-18 12:18:57 +02:00
platform media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
radio media: wl128x: fix a clang warning 2023-06-29 09:56:13 +02:00
rc media: add HAS_IOPORT dependencies 2023-06-28 11:09:25 +02:00
spi
test-drivers media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tuners media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
usb media: usb: as102: drop as102_dev NULL check 2023-06-09 16:07:30 +01:00
v4l2-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile