Re: [PATCH v4 1/3] iio: pressure: bmp280: Use IS_ERR() in bmp280_common_probe()
From: Andy Shevchenko
Date: Wed Aug 20 2025 - 10:49:26 EST
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?
--
With Best Regards,
Andy Shevchenko