summaryrefslogtreecommitdiff
path: root/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-04-13 18:10:41 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-04-26 12:59:26 +0300
commitf468ff16f5524cdccf182a1fa7c0558421d2acbc (patch)
tree1bafc2a512999cb00eb160b78f44b9b50d7bf6a7 /drivers/staging/media/atomisp/pci/atomisp_v4l2.c
parentf1aa35ab594321cad3855de844ec3837f08ad205 (diff)
downloadlinux-f468ff16f5524cdccf182a1fa7c0558421d2acbc.tar.xz
media: atomisp: Drop custom flash support
Remove the custom flash handling from the atomisp driver. There are only few Bay Trail / Cherry Trail devices with flash and if those will ever get supported then this should be done through the new standard include/linux/led-class-flash.h APIs instead of with atomisp specific custom APIs. 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>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/atomisp_v4l2.c')
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp_v4l2.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
index 0069b547754d..4c3d55301089 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
@@ -825,13 +825,6 @@ static int atomisp_subdev_probe(struct atomisp_device *isp)
isp->sensor_lanes[mipi_port] = subdevs->lanes;
isp->sensor_subdevs[subdevs->port] = subdevs->subdev;
break;
- case LED_FLASH:
- if (isp->flash) {
- dev_warn(isp->dev, "too many atomisp flash devices\n");
- continue;
- }
- isp->flash = subdevs->subdev;
- break;
default:
dev_dbg(isp->dev, "unknown subdev probed\n");
break;