linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: adc: dln2-adc: fix build error
@ 2017-10-07 23:53 Randy Dunlap
  2017-10-08 10:44 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2017-10-07 23:53 UTC (permalink / raw)
  To: LKML, linux-iio, Jonathan Cameron; +Cc: Jack Andersen, kbuild test robot

From: Randy Dunlap <rdunlap@infradead.org>

The dln2-adc driver uses interface(s) that are controlled by the
IIO_TRIGGERED_BUFFER Kconfig symbol, so the driver needs to select
that symbol to prevent the build error.

drivers/iio/adc/dln2-adc.o: In function `dln2_adc_probe':
dln2-adc.c:(.text+0x528): undefined reference to `devm_iio_triggered_buffer_setup'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org
Cc: Jack Andersen <jackoalan@gmail.com>
---
 drivers/iio/adc/Kconfig |    2 ++
 1 file changed, 2 insertions(+)

--- lnx-414-rc3.orig/drivers/iio/adc/Kconfig
+++ lnx-414-rc3/drivers/iio/adc/Kconfig
@@ -243,6 +243,8 @@ config DA9150_GPADC
 config DLN2_ADC
 	tristate "Diolan DLN-2 ADC driver support"
 	depends on MFD_DLN2
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  Say yes here to build support for Diolan DLN-2 ADC.
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: adc: dln2-adc: fix build error
  2017-10-07 23:53 [PATCH] iio: adc: dln2-adc: fix build error Randy Dunlap
@ 2017-10-08 10:44 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2017-10-08 10:44 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: LKML, linux-iio, Jack Andersen, kbuild test robot

On Sat, 7 Oct 2017 16:53:20 -0700
Randy Dunlap <rdunlap@infradead.org> wrote:

> From: Randy Dunlap <rdunlap@infradead.org>
> 
> The dln2-adc driver uses interface(s) that are controlled by the
> IIO_TRIGGERED_BUFFER Kconfig symbol, so the driver needs to select
> that symbol to prevent the build error.
> 
> drivers/iio/adc/dln2-adc.o: In function `dln2_adc_probe':
> dln2-adc.c:(.text+0x528): undefined reference to `devm_iio_triggered_buffer_setup'
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Cc: Jonathan Cameron <jic23@kernel.org>
> Cc: linux-iio@vger.kernel.org
> Cc: Jack Andersen <jackoalan@gmail.com>

Applied to the fixes-togreg branch of iio.git.

Thanks,

Jonathan

> ---
>  drivers/iio/adc/Kconfig |    2 ++
>  1 file changed, 2 insertions(+)
> 
> --- lnx-414-rc3.orig/drivers/iio/adc/Kconfig
> +++ lnx-414-rc3/drivers/iio/adc/Kconfig
> @@ -243,6 +243,8 @@ config DA9150_GPADC
>  config DLN2_ADC
>  	tristate "Diolan DLN-2 ADC driver support"
>  	depends on MFD_DLN2
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  Say yes here to build support for Diolan DLN-2 ADC.
>  
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-08 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-07 23:53 [PATCH] iio: adc: dln2-adc: fix build error Randy Dunlap
2017-10-08 10:44 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).