media: atomisp: Remove isp->need_gfx_throttle field
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 May 2023 15:23:48 +0000 (16:23 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:28:22 +0000 (14:28 +0100)
commit1b9a80a47dbfc871867845350fcc519ea5181418
treeba89a29f216f34c608a929df5e8febabf0bdd48d
parent7943916bd4e5952a535ae8b3f7513866a33b302b
media: atomisp: Remove isp->need_gfx_throttle field

Remove the isp->need_gfx_throttle field it is only ever set and
never read.

Also the code setting it is broken, comparing run_mode->val to
ATOMISP_SUBDEV_PAD_SOURCE_VIDEO which are not of the same type /
not part of the same enum.

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