]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: atomisp: Drop is_valid_device() function
authorHans de Goede <hdegoede@redhat.com>
Tue, 26 Dec 2023 15:32:10 +0000 (16:32 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 1 Feb 2024 06:02:21 +0000 (07:02 +0100)
commitf18ae7203f6fdb0cfb408ab82807bcd700e33a96
tree9e4caf59d47258a78c5ed4e24f42d47c3d21679f
parent571f043d2ab24d314ec2516dc51e31d43977b2f8
media: atomisp: Drop is_valid_device() function

Now that a single build supports both the ISP 2400 and the ISP 2401
this function is no longer necessary. The main probe() already
contains a similar switch (id->device & ATOMISP_PCI_DEVICE_SOC_MASK)
checking for a known device_id.

Move the revision check into the main probe() and drop
the is_valid_device() function.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c