Skip to content

Commit 1153cb4

Browse files
committed
media: atomisp: print info if gpio0 and gpio2 were detected
If the ACPI DSDT tables provide _CRS for the camera, the GPIO core code should be able to handle them automatically. Tested-by: Andy Shevchenko <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent d6ad1c9 commit 1153cb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,14 @@ static struct gmin_subdev *gmin_subdev_add(struct v4l2_subdev *subdev)
537537
gs->gpio0 = gpiod_get_index(dev, NULL, 0, GPIOD_OUT_LOW);
538538
if (IS_ERR(gs->gpio0))
539539
gs->gpio0 = NULL;
540+
else
541+
dev_info(dev, "will handle gpio0 via ACPI\n");
540542

541543
gs->gpio1 = gpiod_get_index(dev, NULL, 1, GPIOD_OUT_LOW);
542544
if (IS_ERR(gs->gpio1))
543545
gs->gpio1 = NULL;
546+
else
547+
dev_info(dev, "will handle gpio1 via ACPI\n");
544548

545549
/*
546550
* FIXME:

0 commit comments

Comments
 (0)