media: atomisp: gc0310: Simplify gc0310_write_reg_array()
authorHans de Goede <hdegoede@redhat.com>
Sat, 4 Feb 2023 12:45:08 +0000 (12:45 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 15 Apr 2023 09:32:54 +0000 (10:32 +0100)
commite1a4b3a76069cb048351ee51ad67e55539e4b2ea
tree09c0338054b2852050b377abfe441329bd7267e2
parentbfe06aee37a9ee01a522a51d5c7bb49d09efd8b2
media: atomisp: gc0310: Simplify gc0310_write_reg_array()

Remove the complex optimization to send multiple registers in
one i2c-transfer. None of the other sensor drivers are doing this
and the reg-lists are only used once at stream-start time, so
this does not need to be highly optimized.

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