Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: rkisp1: rksip1-capture.c: Improve comments and fix typos

Improve the wording of the function description to increase readability.

Fix three typos:
s/during processing a frame/while processing a frame/
s/it also update/it also updates/
s/there's not buf in shadow/there's no buffer in a shadow register/

Replace the abbreviation 'buf' with the full word buffer, the
abbreviation 'config' with the verb configure, and 'regs' with registers.
The goal of this change is to ease the reading flow of the comment.

Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
Reviewed-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Sebastian Fricke and committed by
Mauro Carvalho Chehab
71c41518 b07006ff

+8 -8
+8 -8
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c
··· 830 830 } 831 831 832 832 /* 833 - * Most of registers inside rockchip ISP1 have shadow register since 834 - * they must be not be changed during processing a frame. 833 + * Most registers inside the rockchip ISP1 have shadow register since 834 + * they must not be changed while processing a frame. 835 835 * Usually, each sub-module updates its shadow register after 836 836 * processing the last pixel of a frame. 837 837 */ ··· 847 847 spin_lock_irq(&cap->buf.lock); 848 848 rkisp1_set_next_buf(cap); 849 849 cap->ops->enable(cap); 850 - /* It's safe to config ACTIVE and SHADOW regs for the 850 + /* It's safe to configure ACTIVE and SHADOW registers for the 851 851 * first stream. While when the second is starting, do NOT 852 - * force update because it also update the first one. 852 + * force update because it also updates the first one. 853 853 * 854 - * The latter case would drop one more buf(that is 2) since 855 - * there's not buf in shadow when the second FE received. This's 856 - * also required because the second FE maybe corrupt especially 857 - * when run at 120fps. 854 + * The latter case would drop one more buffer(that is 2) since 855 + * there's no buffer in a shadow register when the second FE received. 856 + * This's also required because the second FE maybe corrupt 857 + * especially when run at 120fps. 858 858 */ 859 859 if (!other->is_streaming) { 860 860 /* force cfg update */