Re: [PATCH v4 1/3] iio: pressure: bmp280: Use IS_ERR() in bmp280_common_probe()

From: Jonathan Cameron
Date: Mon Aug 25 2025 - 04:22:52 EST


On Wed, 20 Aug 2025 17:48:56 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> On Mon, Aug 18, 2025 at 10:27:30AM +0100, Salah Triki wrote:
> > `devm_gpiod_get_optional()` may return non-NULL error pointer on failure.
> > Check its return value using `IS_ERR()` and propagate the error if
> > necessary.
>
> > Fixes: df6e71256c84 ("iio: pressure: bmp280: Explicitly mark GPIO optional")
>
> > Cc: David Lechner <dlechner@xxxxxxxxxxxx>
> > Cc: Jonathan Cameron <jic23@xxxxxxxxxx>
> > Cc: Andy Shevchenko <andy@xxxxxxxxxx>
> > Cc: Nuno Sá <nuno.sa@xxxxxxxxxx>
> > Cc: Markus Elfring <Markus.Elfring@xxxxxx>
>
> Please, next time move the Cc:s to be the after '---' line...
>
> > Signed-off-by: Salah Triki <salah.triki@xxxxxxxxx>
> > Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>
> > ---
>
> ...somewhere here.
>
> It will reduce a lot the noise in the commit message. The all people will be
> Cc'ed anyway (assuming you use `git send-email`).
>
> > drivers/iio/pressure/bmp280-core.c | 9 +++++----
> > 1 file changed, 5 insertions(+), 4 deletions(-)
>
> Jonathan, would it be possible to drop them from the commit you pushed?
>

I did so, just didn't mention it.

J