From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: David Lechner <dlechner@baylibre.com>
Cc: Jakub Szczudlo <jakubszczudlo40@gmail.com>,
linux-iio@vger.kernel.org, jic23@kernel.org, nuno.sa@analog.com,
andy@kernel.org, marcelo.schmitt@analog.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, mike.looijmans@topic.nl,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
jorge.marques@analog.com, antoniu.miclaus@analog.com,
mazziesaccount@gmail.com, jishnu.prakash@oss.qualcomm.com,
duje@dujemihanovic.xyz, wens@kernel.org,
sakari.ailus@linux.intel.com, linusw@kernel.org
Subject: Re: [PATCH v7 3/3] iio: adc: ti-ads1100: Add ti-ads1110 support to ti-ads1100 driver
Date: Wed, 15 Jul 2026 09:42:35 +0300 [thread overview]
Message-ID: <alcr28F603bH6TBM@ashevche-desk.local> (raw)
In-Reply-To: <741bb99e-e9bf-40ef-9eeb-b736e31b980c@baylibre.com>
On Tue, Jul 14, 2026 at 03:18:04PM -0500, David Lechner wrote:
> On 7/14/26 2:55 PM, Jakub Szczudlo wrote:
...
> > #define ADS1100_SLEEP_DELAY_MS 2000
> > +#define ADS1110_INTERNAL_REF_mV 2048
>
> Maybe the diff is messing with the tabs, but I hope the
> numbers are vertically aligned.
They are. Remove the quoting in your MUA and you will see that.
...
> > static int ads1100_read_raw(struct iio_dev *indio_dev,
> > int *val2, long mask)
> > {
> > int ret;
> > + int data_rate_index;
> > struct ads1100_data *data = iio_priv(indio_dev);
Likewise in the rest of the (new) code, try to follow it the reversed xmas tree
order
int ret;
struct ads1100_data *data = iio_priv(indio_dev);
int data_rate_index;
...
> > + data->ads_config = i2c_get_match_data(client);
> > + if (!data->ads_config)
> > + return dev_err_probe(dev, -EINVAL,
>
> Andy has been pushing to use ENODEV for these. Current situation
> is about equal numbers of EINVAL and ENODEV in existing drivers.
> Would be good to pick one and stick with it for new code.
Maybe -ENODATA as you suggested? Sounds perhaps better?
I saw the code where this kind of call and followed by it both use -ENODEV,
and after thinking of your suggestion I now tend towards -ENODATA.
> > + "Can't get device data from firmware\n");
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-07-15 6:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 19:55 [PATCH v7 0/3] iio: adc: ti-ads1100: Add support for TI ADS1110 to ti-ads1100 driver Jakub Szczudlo
2026-07-14 19:55 ` [PATCH v7 1/3] iio: adc: ti-ads1100: Fix incorrect reading when datarate changed in single mode Jakub Szczudlo
2026-07-14 20:10 ` sashiko-bot
2026-07-15 6:45 ` Andy Shevchenko
2026-07-14 19:55 ` [PATCH v7 2/3] dt-bindings: iio: adc: ti,ads1100: add support for ADS1110 Jakub Szczudlo
2026-07-14 20:04 ` sashiko-bot
2026-07-14 19:55 ` [PATCH v7 3/3] iio: adc: ti-ads1100: Add ti-ads1110 support to ti-ads1100 driver Jakub Szczudlo
2026-07-14 20:07 ` sashiko-bot
2026-07-14 20:18 ` David Lechner
2026-07-15 6:42 ` Andy Shevchenko [this message]
2026-07-14 20:20 ` [PATCH v7 0/3] iio: adc: ti-ads1100: Add support for TI ADS1110 " David Lechner
2026-07-15 6:46 ` Andy Shevchenko
-- strict thread matches above, loose matches on Subject: below --
2026-07-14 19:47 Jakub Szczudlo
2026-07-14 19:47 ` [PATCH v7 3/3] iio: adc: ti-ads1100: Add ti-ads1110 support " Jakub Szczudlo
2026-07-14 20:02 ` sashiko-bot
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=alcr28F603bH6TBM@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=duje@dujemihanovic.xyz \
--cc=jakubszczudlo40@gmail.com \
--cc=jic23@kernel.org \
--cc=jishnu.prakash@oss.qualcomm.com \
--cc=jorge.marques@analog.com \
--cc=krzk+dt@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt@analog.com \
--cc=mazziesaccount@gmail.com \
--cc=mike.looijmans@topic.nl \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=wens@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