Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: "Nuno Sá" <noname.nuno@gmail.com>
Cc: "Sam Moelius" <sam.moelius@trailofbits.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Marcelo Schmitt" <marcelo.schmitt@analog.com>,
	"Jonathan Santos" <Jonathan.Santos@analog.com>,
	"Jorge Marques" <jorge.marques@analog.com>,
	"Antoniu Miclaus" <antoniu.miclaus@analog.com>,
	"Matti Vaittinen" <mazziesaccount@gmail.com>,
	"Jishnu Prakash" <jishnu.prakash@oss.qualcomm.com>,
	"Duje Mihanović" <duje@dujemihanovic.xyz>,
	"Stefan Popa" <stefan.popa@analog.com>,
	"Julien Stephan" <jstephan@baylibre.com>,
	"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@vger.kernel.org>,
	"Samuel Moelius" <samuel.moelius@trailofbits.com>
Subject: Re: [PATCH] iio: adc: ad7380: select REGMAP
Date: Wed, 3 Jun 2026 10:20:07 +0100	[thread overview]
Message-ID: <20260603102007.51485e82@jic23-huawei> (raw)
In-Reply-To: <dc7f62261b4bf665482ecd791e425bbc68aae515.camel@gmail.com>

On Tue, 02 Jun 2026 17:28:35 +0100
Nuno Sá <noname.nuno@gmail.com> wrote:

> On Tue, 2026-06-02 at 15:39 +0000, Sam Moelius wrote:
> > From: Samuel Moelius <samuel.moelius@trailofbits.com>
> > 
> > The AD7380 driver uses generic regmap types and APIs. However, its Kconfig entry
> > does not select REGMAP.
> > 
> > As a result, AD7380 can be enabled from an allnoconfig-derived config with
> > SPI_MASTER=y while REGMAP remains unset, causing ad7380.o to fail to build.
> > 
> > Fixes: b095217c104b ("iio: adc: ad7380: new driver for AD7380 ADCs")
> > 
> > Signed-off-by: Samuel Moelius <samuel.moelius@trailofbits.com>
> > ---  
> 
> Change looks good but it seems the commit message will fail checkpatch. With that:
> 
> Reviewed-by: Nuno Sá <nuno.sa@analog.com>
> 
> >  drivers/iio/adc/Kconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> > index a9dedbb8eb46..c79341848698 100644
> > --- a/drivers/iio/adc/Kconfig
> > +++ b/drivers/iio/adc/Kconfig
> > @@ -311,6 +311,7 @@ config AD7298
> >  config AD7380
> >  	tristate "Analog Devices AD7380 ADC driver"
> >  	depends on SPI_MASTER
> > +	select REGMAP

Would REGMAP_SPI be the better choice?  I assume either works from
build point of view, but nicer to select all the support this actually needs.

> >  	select SPI_OFFLOAD
> >  	select IIO_BUFFER
> >  	select IIO_BUFFER_DMAENGINE  


  reply	other threads:[~2026-06-03  9:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 15:39 [PATCH] iio: adc: ad7380: select REGMAP Sam Moelius
2026-06-02 16:08 ` Andy Shevchenko
2026-06-02 16:28 ` Nuno Sá
2026-06-03  9:20   ` Jonathan Cameron [this message]
2026-06-03  9:56     ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260603102007.51485e82@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Jonathan.Santos@analog.com \
    --cc=andy@kernel.org \
    --cc=antoniu.miclaus@analog.com \
    --cc=dlechner@baylibre.com \
    --cc=duje@dujemihanovic.xyz \
    --cc=jishnu.prakash@oss.qualcomm.com \
    --cc=jorge.marques@analog.com \
    --cc=jstephan@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=marcelo.schmitt@analog.com \
    --cc=mazziesaccount@gmail.com \
    --cc=noname.nuno@gmail.com \
    --cc=nuno.sa@analog.com \
    --cc=sam.moelius@trailofbits.com \
    --cc=samuel.moelius@trailofbits.com \
    --cc=stefan.popa@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox