linux/drivers/staging/iio
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
..
Documentation staging: iio: ad5933: add ABI documentation 2019-04-04 20:20:13 +01:00
accel staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00
adc Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
addac staging: iio: adt7316: Fix build errors when GPIOLIB is not set 2019-06-08 12:54:47 +01:00
cdc staging:iio:ad7150: fix threshold mode config bit 2019-05-27 10:52:30 +01:00
frequency staging: iio: ad9832: use clock framework for clock reference 2019-04-14 13:22:30 +01:00
impedance-analyzer First set of new device support, features and fixes for IIO in the 5.2 cycle 2019-04-04 22:25:29 +02:00
meter Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
resolver staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: iio: Drop ADIS16060 driver from staging 2018-06-10 11:52:31 +01:00
TODO staging: iio: Augment TODO file with GPIO work item 2018-04-23 14:36:10 +02:00