[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190614152846.28108-1-yuehaibing@huawei.com>
Date: Fri, 14 Jun 2019 23:28:46 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <gregkh@...uxfoundation.org>, <lars@...afoo.de>,
<Michael.Hennerich@...log.com>, <stefan.popa@...log.com>,
<jic23@...nel.org>, <knaack.h@....de>, <pmeerw@...erw.net>
CC: <linux-kernel@...r.kernel.org>, <devel@...verdev.osuosl.org>,
<linux-iio@...r.kernel.org>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH] staging: iio: adt7316: Add missing include files
Fix build error:
drivers/staging/iio/addac/adt7316.c: In function adt7316_store_update_DAC:
drivers/staging/iio/addac/adt7316.c:949:3: error: implicit declaration of
function gpiod_set_value; did you mean gpio_set_value? [-Werror=implicit-function-declaration]
gpiod_set_value(chip->ldac_pin, 0);
drivers/staging/iio/addac/adt7316.c: In function adt7316_setup_irq:
drivers/staging/iio/addac/adt7316.c:1807:13: error: implicit declaration of
function irqd_get_trigger_type; did you mean devm_iio_trigger_free? [-Werror=implicit-function-declaration]
irq_type = irqd_get_trigger_type(irq_get_irq_data(chip->bus.irq));
Reported-by: Hulk Robot <hulkci@...wei.com>
Fixes: 7f6b6d553df7 ("Staging: iio: adt7316: Add all irq related code in adt7316_irq_setup()")
Fixes: c63460c4298f ("Staging: iio: adt7316: Use device tree data to set ldac_pin")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/staging/iio/addac/adt7316.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c
index 37ce563..9d3d159 100644
--- a/drivers/staging/iio/addac/adt7316.c
+++ b/drivers/staging/iio/addac/adt7316.c
@@ -16,6 +16,8 @@
#include <linux/i2c.h>
#include <linux/rtc.h>
#include <linux/module.h>
+#include <linux/irq.h>
+#include <linux/gpio/consumer.h>
#include <linux/iio/iio.h>
#include <linux/iio/events.h>
--
2.7.4
Powered by blists - more mailing lists