summaryrefslogtreecommitdiffstats
path: root/drivers/iio/temperature
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2019-06-05 23:05:32 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-06-08 12:54:47 +0100
commit767e52f045e1fc080e81a754cc31a39b6cf47b99 (patch)
tree312f53168b9be29712878c7a7483eb7c0bf6f24c /drivers/iio/temperature
parent389fc70b60f534d679aea9a3f05146040ce20d77 (diff)
downloadblackbird-op-linux-767e52f045e1fc080e81a754cc31a39b6cf47b99.tar.gz
blackbird-op-linux-767e52f045e1fc080e81a754cc31a39b6cf47b99.zip
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>
Diffstat (limited to 'drivers/iio/temperature')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud