media: atomisp: Remove atomisp_sw_contex struct
authorHans de Goede <hdegoede@redhat.com>
Mon, 21 Nov 2022 14:06:09 +0000 (15:06 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 06:57:40 +0000 (07:57 +0100)
commit21b86873711be1aa019ee8991c293efd09c022fd
tree06be2c3049d6f5785edac1e6772f30b2992d27f5
parent0c144c9308a66b4a8d7eb9a0f58d251999870fd1
media: atomisp: Remove atomisp_sw_contex struct

Remove the atomisp_sw_contex struct, it has only 1 member: running_freq,
instead store running_freq directly.

While at it also change running_freq from an int to an unsigned int,
all values stored in it are unsigned and it is compared to the also
unsigned new_freq variable.

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