media: atomisp: Drop MRFLD_PORT_NUM define
authorHans de Goede <hdegoede@redhat.com>
Sun, 14 May 2023 18:51:28 +0000 (19:51 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:59:58 +0000 (14:59 +0100)
commit1ad997e83110d57af7dca8ccbb490e6c634ba46e
treefe4f95bd06fdf97268ffb7792921614ab88a1b4f
parent1bb2a551e65bf35928432d1837e6d9287361704e
media: atomisp: Drop MRFLD_PORT_NUM define

The info in the MRFLD_PORT_NUM define is duplicate with
the ATOMISP_CAMERA_NR_PORTS and N_MIPI_PORT_ID enum values.

Drop the MRFLD_PORT_NUM define and switch to N_MIPI_PORT_ID
since the [sensor_]lanes arrays are in enum mipi_port_id order.

Link: https://lore.kernel.org/r/20230518153733.195306-2-hdegoede@redhat.com
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/pci/atomisp-regs.h
drivers/staging/media/atomisp/pci/atomisp_v4l2.c