media: atomisp: Remove struct atomisp_platform_data
authorHans de Goede <hdegoede@redhat.com>
Sun, 14 Apr 2024 14:31:26 +0000 (15:31 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 Apr 2024 10:02:45 +0000 (11:02 +0100)
commit0445126fcaad0e13e6bc7a788c9ddb4e75739f59
treef4849efb149b31e8651dab0ed9131c7c916283f6
parent74350ed0787e82cc6af5b7cd1d4d4cc1db5b29d4
media: atomisp: Remove struct atomisp_platform_data

struct atomisp_platform_data only has a single subdevs member. Remove
this struct and replace atomisp_get_platform_data() with
atomisp_platform_get_subdevs().

Note atomisp_get_platform_data() and now atomisp_platform_get_subdevs()
always succeed, so while at it also remove unnecessary error checking.

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/include/linux/atomisp_platform.h
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
drivers/staging/media/atomisp/pci/atomisp_internal.h
drivers/staging/media/atomisp/pci/atomisp_v4l2.c