linux/drivers/iio
YueHaibing 1c2fb40546 iio: adc: ti-ads7950: Fix build error without CONFIG_GPIOLIB
When building with CONFIG_GPIOLIB is not set
gcc warns this:

drivers/iio/adc/ti-ads7950.c:75:19: error: field chip has incomplete type
  struct gpio_chip chip;
                   ^~~~
drivers/iio/adc/ti-ads7950.c: In function ti_ads7950_set:
drivers/iio/adc/ti-ads7950.c:409:32: error: implicit declaration of function gpiochip_get_data; did you mean acpi_get_data? [-Werror=implicit-function-declaration]
  struct ti_ads7950_state *st = gpiochip_get_data(chip);
                                ^~~~~~~~~~~~~~~~~
                                acpi_get_data

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: c97dce792d ("iio: adc: ti-ads7950: add GPIO support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Justin Chen <justinpopo6@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-04-14 13:52:11 +01:00
..
accel iio: accel: add support to LIS2DE12 2019-04-14 13:22:31 +01:00
adc iio: adc: ti-ads7950: Fix build error without CONFIG_GPIOLIB 2019-04-14 13:52:11 +01:00
afe iio: afe: rescale: new driver 2018-04-28 18:03:22 +01:00
amplifiers drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
buffer iio: buffer: Switch to bitmap_zalloc() 2019-04-04 20:19:51 +01:00
chemical drivers: iio: Kconfig: pedantic cleanup 2019-04-04 20:19:56 +01:00
common iio: cros_ec: Switch to SPDX identifier. 2019-04-04 20:19:58 +01:00
counter iio: counter: stm32-lptimer: Add power management support 2019-04-04 20:19:45 +01:00
dac iio:dac:ad5064 mlock cleanup - move to a local lock. 2019-04-04 20:19:57 +01:00
dummy iio:dummy: Add extra paragraphs on Kconfig 2018-03-03 15:20:16 +00:00
frequency iio: frequency: ad9523: Fix typo in ad9523_platform_data 2019-04-04 20:20:58 +01:00
gyro iio: gyro: bmg160: add device tree compatibility table 2019-04-04 20:20:52 +01:00
health iio: health: max30102: Mark expected switch fall-throughs 2018-08-19 17:21:35 +01:00
humidity drivers: iio: Kconfig: pedantic cleanup 2019-04-04 20:19:56 +01:00
imu iio: imu: st_lsm6dsx: remove set but not used variables 'acc_sensor' and 'gyro_sensor' 2019-04-14 13:39:30 +01:00
light iio: light: vcnl4000 add support for the VCNL4040 proximity and light sensor 2019-04-04 20:20:47 +01:00
magnetometer iio: hmc5843: fix potential NULL pointer dereferences 2019-04-04 20:20:14 +01:00
multiplexer iio: multiplexer: switch to SPDX license identifier 2018-08-20 19:28:26 +01:00
orientation iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
potentiometer drivers: iio: Kconfig: pedantic cleanup 2019-04-04 20:19:56 +01:00
potentiostat iio:potentiostat:lmp91000: change dev_err message 2019-04-04 20:19:55 +01:00
pressure iio: cros_ec: Switch to SPDX identifier. 2019-04-04 20:19:58 +01:00
proximity mb1232.c: add distance iio sensor with i2c 2019-04-04 20:20:17 +01:00
resolver staging:iio:ad2s90: Move out of staging 2018-12-01 15:40:39 +00:00
temperature iio: temperature: max31856: fix uninitialized error return 2019-04-14 13:50:09 +01:00
trigger iio: remove redundant unlikely annotation 2019-04-04 20:19:40 +01:00
iio_core_trigger.h
iio_core.h
industrialio-buffer.c iio: buffer: Switch to bitmap_zalloc() 2019-04-04 20:19:51 +01:00
industrialio-configfs.c
industrialio-core.c iio: Allow to read mount matrix from ACPI 2019-04-04 20:19:46 +01:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: trigger: Print an error if there is no available irq 2019-04-04 20:19:41 +01:00
industrialio-triggered-event.c
inkern.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
Kconfig drivers: iio: Kconfig: pedantic cleanup 2019-04-04 20:19:56 +01:00
Makefile staging: iio: ad2s1200: Move driver out of staging 2018-05-20 12:17:48 +01:00