15 Aug
2023
15 Aug
'23
3:55 p.m.
On Mon, Aug 14, 2023 at 01:55:06PM +0200, Takashi Iwai wrote:
This patch converts the korg1212 driver code to use the new unified PCM copy callback. The open-coded conditional memory copies are replaced with simpler copy_from/to_iter() calls.
Note that copy_from/to_iter() returns the copied bytes, hence the error condition is inverted from copy_from/to_user().
...
if (!copy_to_iter(src, size, dst))
!= size ?
return -EFAULT;
...
if (!copy_from_iter(dst, size, src)) return -EFAULT;
Ditto.
--
With Best Regards,
Andy Shevchenko