]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: staging: rkisp1: cap: move code that manages the buffers to rkisp1_set_next_buf
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tue, 14 Jul 2020 12:38:31 +0000 (14:38 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:04:53 +0000 (14:04 +0200)
commit23780e14fec91242bb621670c61afa0898407892
treed623e34321dfca5d1772ac62df00949edd8e979c
parent454748e3b3529218a50920e643dab6f149ab2639
media: staging: rkisp1: cap: move code that manages the buffers to rkisp1_set_next_buf

The function 'rkisp1_set_next_buf' configures the registers
according to 'cap->buf.next'. It is called after updating
'cap->buf.next' and 'cap->buf.curr'. This patch moves the
code that updates those fields to rkisp1_set_next_buf.
This is a preparation for later patch that change a call to
'rkisp1_handle_buffer' with a call to 'rkisp1_set_next_buf'.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-capture.c