media: atomisp: Make atomisp_init_sensor() check if the sensor supports binning
authorHans de Goede <hdegoede@redhat.com>
Mon, 29 May 2023 10:37:37 +0000 (11:37 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 14:34:49 +0000 (15:34 +0100)
commit62866c23c78d2c5db85bf82d61d8801aa9e93176
tree11da436b6651e672968d78184078931d6c9727c7
parenta08183b8460e4800c186b754026b6fd937370871
media: atomisp: Make atomisp_init_sensor() check if the sensor supports binning

Make atomisp_init_sensor() check if the sensor supports binning.

This is a preparation patch for using the selection / crop support
to determine the padding values to use with a specific sensor.

Link: https://lore.kernel.org/r/20230529103741.11904-18-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_internal.h
drivers/staging/media/atomisp/pci/atomisp_v4l2.c