mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: "Nuno Sá" <nuno.sa@analog.com>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, linux@analog.com,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Jonathan Cameron <jic23@kernel.org>,
	David Lechner <dlechner@baylibre.com>,
	Andy Shevchenko <andy@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2 06/11] iio: adc: ad7793: use spi_get_device_match_data()
Date: Fri, 4 Dec 2026 14:01:26 +0200	[thread overview]
Message-ID: <axKrliK1wUxVnN2A@ashevche-desk.local> (raw)
In-Reply-To: <axKncgviiXU9ls2M@nsa>

On Fri, Dec 04, 2026 at 11:44:22AM +0000, Nuno Sá wrote:
> On Thu, Dec 03, 2026 at 06:37:34PM +0200, Andy Shevchenko wrote:
> > On Wed, Dec 02, 2026 at 05:05:38PM +0000, Nuno Sá wrote:

...

> > > -	st->chip_info =
> > > -		&ad7793_chip_info_tbl[spi_get_device_id(spi)->driver_data];
> > > +	st->chip_info = spi_get_device_match_data(spi);
> > > +	if (!st->chip_info)
> > > +		return -ENODEV;
> > 
> > -ENODATA
> 
> Oh, is this now the agreed code for the above?

Yep. The rationale is that ENODEV and EINVAL are way too much overloaded
semantically. While ENODATA is also used in several cases by several APIs
it is still better fit.

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2026-12-04 12:01 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 17:05 [PATCH v2 00/11] iio: adc: drop platform data from some ADI ADC drivers Nuno Sá
2026-12-02 17:05 ` [PATCH v2 01/11] iio: adc: ad7887: fix on-chip reference enable logic Nuno Sá
2026-12-03 11:54   ` Andy Shevchenko
2026-12-02 17:05 ` [PATCH v2 02/11] iio: adc: ad7887: drop platform data support Nuno Sá
2026-12-03 11:56   ` Andy Shevchenko
2026-12-06  0:24     ` Jonathan Cameron
2026-12-02 17:05 ` [PATCH v2 03/11] iio: adc: ad7266: " Nuno Sá
2026-12-03 11:57   ` Andy Shevchenko
2026-12-06  0:25     ` Jonathan Cameron
2026-12-02 17:05 ` [PATCH v2 04/11] iio: adc: ad7791: " Nuno Sá
2026-12-06  0:26   ` Jonathan Cameron
2026-12-02 17:05 ` [PATCH v2 05/11] dt-bindings: iio: adc: add AD7793 and similar ADCs Nuno Sá
2026-12-02 17:05 ` [PATCH v2 06/11] iio: adc: ad7793: use spi_get_device_match_data() Nuno Sá
2026-12-03 16:37   ` Andy Shevchenko
2026-12-04 11:44     ` Nuno Sá
2026-12-04 12:01       ` Andy Shevchenko [this message]
2026-12-02 17:05 ` [PATCH v2 07/11] iio: adc: ad7793: enable the AVDD and DVDD supplies Nuno Sá
2026-12-03 17:03   ` Andy Shevchenko
2026-12-02 17:05 ` [PATCH v2 08/11] iio: adc: ad7793: move platform data definitions into the driver Nuno Sá
2026-12-03 17:02   ` Andy Shevchenko
2026-12-02 17:05 ` [PATCH v2 09/11] iio: adc: ad7793: rename platform data to config Nuno Sá
2026-12-03 17:26   ` Andy Shevchenko
2026-12-02 17:05 ` [PATCH v2 10/11] iio: adc: ad7793: drop burnout current support Nuno Sá
2026-12-03 17:33   ` Andy Shevchenko
2026-12-02 17:05 ` [PATCH v2 11/11] iio: adc: ad7793: add firmware support Nuno Sá
2026-12-04 12:12   ` Andy Shevchenko
2026-12-06  0:31   ` Jonathan Cameron

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=axKrliK1wUxVnN2A@ashevche-desk.local \
    --to=andriy.shevchenko@intel.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=arnd@arndb.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@analog.com \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /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

all inboxes | Powered by JetHome®