linux-stable/drivers/media/pci/solo6x10
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
..
Kconfig
Makefile
solo6x10-core.c media: solo6x10: fix possible memory leak in solo_sysfs_init() 2022-11-25 07:36:22 +00:00
solo6x10-disp.c
solo6x10-eeprom.c
solo6x10-enc.c
solo6x10-g723.c media: solo6x10: Convert to generic PCM copy ops 2023-08-18 12:18:57 +02:00
solo6x10-gpio.c
solo6x10-i2c.c
solo6x10-jpeg.h
solo6x10-offsets.h
solo6x10-p2m.c
solo6x10-regs.h
solo6x10-tw28.c
solo6x10-tw28.h
solo6x10-v4l2-enc.c media: avoid use of 'videobuf' 2022-08-29 16:27:18 +02:00
solo6x10-v4l2.c media: v4l: ioctl: Set bus_info in v4l_querycap() 2022-04-24 08:07:08 +01:00
solo6x10.h