media: atomisp: Remove atomisp_ospm_dphy_up()/_down() functions
authorHans de Goede <hdegoede@redhat.com>
Mon, 14 Nov 2022 16:07:45 +0000 (16:07 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:24:52 +0000 (08:24 +0000)
commit2527b8d1676aee0351c6f2babf2d1057709a4b80
tree6f01ba65b46afa5819b80b4b4ec3b91e79ae411b
parent1ad2c1354bfa097e974d2edaa7491b6f2d43f481
media: atomisp: Remove atomisp_ospm_dphy_up()/_down() functions

atomisp_ospm_dphy_up() is an empty function now and
atomisp_ospm_dphy_down() contains a couple of checks + goto done
statements which don't matter since the function always ends up at
the done label regardless and then it does 1 pci-config write.

Move the single pci-config write directly to atomisp_power_off()
and remove the atomisp_ospm_dphy_up()/_down() functions.

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/pci/atomisp_cmd.c
drivers/staging/media/atomisp/pci/atomisp_cmd.h
drivers/staging/media/atomisp/pci/atomisp_v4l2.c