diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-10 11:45:58 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-04-14 15:52:11 +0300 |
commit | 1c2fb40546489ce4ad3cf0cb46d70b5bdea05205 (patch) | |
tree | 1ec8bc60cc1e6c48caa2cfab5b4fbef6d0c41b10 /arch/powerpc/kvm/book3s_pr_papr.c | |
parent | 8e4fefec0174b43fd149dee159131c88cb623664 (diff) | |
download | linux-1c2fb40546489ce4ad3cf0cb46d70b5bdea05205.tar.xz |
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: c97dce792dc8 ("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>
Diffstat (limited to 'arch/powerpc/kvm/book3s_pr_papr.c')
0 files changed, 0 insertions, 0 deletions