media: atomisp: Rename __get_mipi_port() to atomisp_port_to_mipi_port()
authorHans de Goede <hdegoede@redhat.com>
Tue, 16 May 2023 20:36:14 +0000 (21:36 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 14:04:39 +0000 (15:04 +0100)
commit64be20708a4b51661ae6d2dd4cc0d7bec4116d12
tree85b4def49266903b7b5ca60b7a39dad06217e58f
parent45b4ab382a9ef7ff8dc62f6625601879ba8af4c0
media: atomisp: Rename __get_mipi_port() to atomisp_port_to_mipi_port()

Rename __get_mipi_port() to atomisp_port_to_mipi_port(), this is not a
private (not static) function so its name should be properly prefixed.

While at is also cleanup the weird handling of ATOMISP_CAMERA_PORT_TERTIARY
this seems to be a left over from when the driver also supported CSI
receivers with only 2 ports, but those are not supported by the current
code base, so this can be cleaned up now.

Link: https://lore.kernel.org/r/20230518153733.195306-5-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_cmd.c
drivers/staging/media/atomisp/pci/atomisp_cmd.h