Fabio Estevam
767e52f045
staging: iio: adt7316: Fix build errors when GPIOLIB is not set
...
On x86_64 when GPIOLIB is not set the following build errors
are seen:
drivers/staging/iio/addac/adt7316.c:947:3: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration]
drivers/staging/iio/addac/adt7316.c:1805:2: error: implicit declaration of function 'irqd_get_trigger_type' [-Werror=implicit-function-declaration]
These functions are provided by the <linux/gpio/consumer.h>
and <linux/irq.h> headers, so include them to fix these
build errors.
While at it, remove <linux/gpio.h> as this driver is a GPIO
consumer and not a GPIO driver.
Reported-by: Randy Dunlap <rdunlap@infradead.org >
Signed-off-by: Fabio Estevam <festevam@gmail.com >
Acked-by: Randy Dunlap <rdunlap@infradead.org > # build-tested
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2019-06-08 12:54:47 +01:00
..
2019-05-16 19:05:35 -07:00
2019-05-08 14:40:39 +02:00
2019-05-07 13:39:22 -07:00
2019-05-16 19:08:15 -07:00
2019-05-15 08:46:44 -07:00
2019-05-16 19:08:15 -07:00
2019-05-05 19:34:00 +02:00
2019-05-16 09:19:14 -07:00
2019-05-08 10:34:17 -07:00
2019-05-16 19:05:35 -07:00
2019-05-19 11:11:20 -07:00
2019-05-16 19:05:35 -07:00
2019-05-16 08:31:32 -07:00
2019-05-15 18:56:50 -07:00
2019-05-09 08:51:45 -07:00
2019-05-16 07:22:42 -07:00
2019-05-16 11:55:35 -07:00
2019-05-07 13:39:22 -07:00
2019-05-14 09:47:50 -07:00
2019-05-19 10:58:45 -07:00
2019-05-16 09:19:14 -07:00
2019-05-07 13:39:22 -07:00
2019-05-19 10:58:45 -07:00
2019-05-16 19:05:35 -07:00
2019-05-18 11:49:57 +09:00
2019-05-16 16:16:18 -07:00
2019-05-07 13:39:22 -07:00
2019-05-17 19:29:40 +02:00
2019-05-07 08:50:40 -07:00
2019-05-08 16:47:23 -07:00
2019-05-27 10:52:30 +01:00
2019-05-14 20:56:31 -07:00
2019-05-16 08:31:32 -07:00
2019-05-19 10:58:45 -07:00
2019-05-19 10:58:45 -07:00
2019-05-07 22:03:58 -07:00
2019-05-14 10:39:08 -07:00
2019-05-06 10:19:19 -06:00
2019-05-16 19:05:35 -07:00
2019-05-16 15:55:48 -07:00
2019-05-18 11:49:56 +09:00
2019-05-16 19:05:35 -07:00
2019-05-07 12:56:19 -07:00
2019-05-16 19:05:35 -07:00
2019-05-19 11:11:20 -07:00
2019-05-16 19:05:35 -07:00
2019-05-14 19:52:52 -07:00
2019-05-18 11:49:57 +09:00
2019-05-07 22:03:58 -07:00
2019-05-15 18:56:50 -07:00
2019-05-16 19:08:15 -07:00
2019-05-16 09:19:14 -07:00
2019-05-13 08:52:37 -07:00
2019-05-03 23:47:39 +02:00
2019-05-09 08:40:55 -07:00
2019-05-14 10:30:10 -07:00
2019-05-14 19:52:52 -07:00
2019-05-08 10:03:52 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 10:39:08 -07:00
2019-05-15 18:50:40 -07:00
2019-05-14 19:52:51 -07:00
2019-05-09 09:19:26 -07:00
2019-05-19 11:11:20 -07:00
2019-05-14 19:52:50 -07:00
2019-05-06 22:52:14 +09:00
2019-05-16 09:19:14 -07:00
2019-05-16 09:19:14 -07:00
2019-05-17 10:08:59 -07:00
2019-05-14 09:47:46 -07:00
2019-05-14 09:47:46 -07:00
2019-05-14 19:52:52 -07:00
2019-05-19 10:58:45 -07:00
2019-05-16 09:19:14 -07:00
2019-05-07 22:03:58 -07:00
2019-06-08 12:54:47 +01:00
2019-05-18 11:49:57 +09:00
2019-05-16 09:19:14 -07:00
2019-05-16 16:16:18 -07:00
2019-05-07 13:39:22 -07:00
2019-05-19 09:56:36 -07:00
2019-05-18 11:49:57 +09:00
2019-05-14 09:47:46 -07:00
2019-05-14 14:12:59 -07:00
2019-05-17 11:07:42 +02:00
2019-05-14 19:52:52 -07:00
2019-05-12 13:11:35 -04:00
2019-05-07 13:39:22 -07:00
2019-05-16 08:31:32 -07:00
2019-05-15 18:44:52 -07:00