summaryrefslogtreecommitdiff
path: root/drivers/media/cec
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2022-02-23 01:23:31 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-02-23 10:53:09 +0300
commit0bff66dcbe55cd4b13dfe53abad9268e34d48cbf (patch)
tree971e71bc49a85eb0bd29d5a25b9fef817671931a /drivers/media/cec
parent17e83a0a1e134401616120b6976f65234e7ccc45 (diff)
downloadlinux-0bff66dcbe55cd4b13dfe53abad9268e34d48cbf.tar.xz
media: cec: seco: Drop pointless include
This driver uses GPIO descriptors not the old legacy GPIO API so stop including <linux/gpio.h>. Fix a bug using a completely unrelated legacy API flag GPIOF_IN by switching to the actually desired flag GPIOD_IN. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/cec')
-rw-r--r--drivers/media/cec/platform/seco/seco-cec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/cec/platform/seco/seco-cec.c b/drivers/media/cec/platform/seco/seco-cec.c
index ae138cc253fd..4df56096a476 100644
--- a/drivers/media/cec/platform/seco/seco-cec.c
+++ b/drivers/media/cec/platform/seco/seco-cec.c
@@ -12,7 +12,6 @@
#include <linux/delay.h>
#include <linux/dmi.h>
#include <linux/gpio/consumer.h>
-#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
@@ -551,7 +550,7 @@ static int secocec_acpi_probe(struct secocec_data *sdev)
struct gpio_desc *gpio;
int irq = 0;
- gpio = devm_gpiod_get(dev, NULL, GPIOF_IN);
+ gpio = devm_gpiod_get(dev, NULL, GPIOD_IN);
if (IS_ERR(gpio)) {
dev_err(dev, "Cannot request interrupt gpio");
return PTR_ERR(gpio);