media: atomisp: Add an index helper variable to atomisp_buf_done()
authorHans de Goede <hdegoede@redhat.com>
Sat, 8 Oct 2022 15:20:09 +0000 (16:20 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:12:25 +0000 (08:12 +0000)
commitb7465077f72ca8a01aa5fe18b4ee2887761c1117
tree883d89f7fcff819e91954c83cd0153f46be86d4a
parent89f9829c4163bc0e4c5f7e74142fd791fc747696
media: atomisp: Add an index helper variable to atomisp_buf_done()

With the videobuf2 conversion accessing the index of a frame is going
to become more involved and writing this out each time is undesired.

Add an 'i' helper variable for the index and assing this once as
preparation for the videobuf2 conversion.

This also makes use of the new rules wrt max line-lengths in the kernel
to avoid breaking up a bunch of lines. Not breaking these lines results
in better readable code (IMHO).

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c