mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: David CARLIER <devnexen@gmail.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
	"Ariana Lazar" <ariana.lazar@microchip.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH] iio: dac: mcp47feb02: reject out-of-range raw values
Date: Sun, 25 Oct 2026 23:25:27 +0200	[thread overview]
Message-ID: <at5zx4M5Hj5qms3s@ashevche-desk.local> (raw)
In-Reply-To: <CA+XhMqzZZyN80nP2ER3jyTsM9UC2xMRLiqdCsAtp+K=hDbqtQg@mail.gmail.com>

On Sun, Oct 25, 2026 at 09:11:16PM +0000, David CARLIER wrote:
> On Sun, 25 Oct 2026 at 21:07, Andy Shevchenko <andriy.shevchenko@intel.com>
> wrote:
> > On Sun, Oct 25, 2026 at 08:50:16PM +0000, David CARLIER wrote:
> > > On Sun, 25 Oct 2026 at 20:37, Andy Shevchenko <andriy.shevchenko@intel.com>
> > > wrote:
> > > > On Sat, Oct 24, 2026 at 10:44:23PM +0100, David Carlier wrote:

...

> > > > > +                     return -EINVAL;
> > > >
> > > > Not sure about this error code. Do other IIO drivers use same in the
> > > > similar situation?
> > >
> > > Yes other drivers for every out-of-range check IIO_CHAN_INFO_RAW.
> >
> > No doubts. But I asked a different question. Can you answer it?
> 
> I meant in this case the other drivers -EINVAL.

OK, thanks for confirming!

-- 
With Best Regards,
Andy Shevchenko



      parent reply	other threads:[~2026-10-25 21:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-24 21:44 David Carlier
2026-10-25 10:17 ` Joshua Crofts
2026-10-25 20:37 ` Andy Shevchenko
     [not found]   ` <CA+XhMqx5jusLqo8G2XCY9gy_P=3-jAwTacgzrR4XFyjpagi8dA@mail.gmail.com>
2026-10-25 21:07     ` Andy Shevchenko
     [not found]       ` <CA+XhMqzZZyN80nP2ER3jyTsM9UC2xMRLiqdCsAtp+K=hDbqtQg@mail.gmail.com>
2026-10-25 21:25         ` Andy Shevchenko [this message]

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=at5zx4M5Hj5qms3s@ashevche-desk.local \
    --to=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=ariana.lazar@microchip.com \
    --cc=devnexen@gmail.com \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=stable@vger.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®