ASoC: Name iov_iter argument as iterator instead of buffer
authorTakashi Iwai <tiwai@suse.de>
Thu, 31 Aug 2023 13:04:57 +0000 (15:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 1 Sep 2023 13:38:49 +0000 (15:38 +0200)
commitef98a4883298bc2ead30ade6b6a10c4ac4bc07c8
tree1428fd8964262bfa9a88adc1dade09d71851f22c
parent69d0fd348d31977368defc3c0737c0ecb824732b
ASoC: Name iov_iter argument as iterator instead of buffer

While transitioning ASoC code for iov_iter usages, I kept the argument
name as "buf" as the original code.  But, iov_iter is an iterator, and
using the name "buf" may be misleading: the crucial difference is that
iov_iter can be proceeded after the operation, hence it can't be
passed twice, while a simple "buffer" sounds as if reusable.

To make the usage clearer, rename the argument from "buf" to "iter".
There is no functional changes, just names.

Fixes: 66201cacc33d ("ASoC: component: Add generic PCM copy ops")
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/CAHk-=wje+VkXjjfVTmK-uJdG_M5=ar14QxAwK+XDiq07k_pzBg@mail.gmail.com
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230831130457.8180-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/soc-component.h
sound/soc/soc-component.c
sound/soc/soc-generic-dmaengine-pcm.c