Re: [PATCH] iio: adc: ti-adc081c: Select IIO_TRIGGERED_BUFFER to prevent build errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/10/16 15:46, Mika Westerberg wrote:
> Commit 08e05d1fce5c ("ti-adc081c: Initial triggered buffer support") added
> triggered buffer support but that also requires CONFIG_IIO_TRIGGERED_BUFFER,
> otherwise we get errors from linker such as:
> 
>   drivers/built-in.o: In function `adc081c_remove':
>   drivers/iio/adc/ti-adc081c.c:225: undefined reference to `iio_triggered_buffer_cleanup'
> 
> Fix these by explicitly selecting both CONFIG_IIO_TRIGGERED_BUFFER and
> CONFIG_IIO_BUFFER in Kconfig for the driver.
> 
> Signed-off-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
Applied to the fixes-togreg-post-rc1 branch of iio.git which I'll send
a pull request for once the merge window is closed. Strange this one
got through the autobuilders (less strange that it snuck past me
reviewing it ;(

Fengguang, any thoughts?

Thanks,

Jonathan
> ---
>  drivers/iio/adc/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> index 767577298ee3..375ba57bdfcd 100644
> --- a/drivers/iio/adc/Kconfig
> +++ b/drivers/iio/adc/Kconfig
> @@ -400,6 +400,8 @@ config ROCKCHIP_SARADC
>  config TI_ADC081C
>  	tristate "Texas Instruments ADC081C/ADC101C/ADC121C family"
>  	depends on I2C
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  If you say yes here you get support for Texas Instruments ADC081C,
>  	  ADC101C and ADC121C ADC chips.
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux