[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VeZuKWxocVq21PCmPdP1P=wQQ75veOzyW-YJ+WW=HAaSQ@mail.gmail.com>
Date: Sat, 11 Oct 2025 17:30:40 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Rodrigo Gobbi <rodrigo.gobbi.7@...il.com>
Cc: lanzano.alex@...il.com, jic23@...nel.org, dlechner@...libre.com,
nuno.sa@...log.com, andy@...nel.org, ~lkcamp/patches@...ts.sr.ht,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: imu: bmi270: fix dev_err_probe error msg
On Fri, Oct 10, 2025 at 10:11 PM Rodrigo Gobbi
<rodrigo.gobbi.7@...il.com> wrote:
>
> The bmi270 can be connected to I2C or a SPI interface. If it is a SPI,
> during probe, if devm_regmap_init() fails, it should print the "spi"
> term rather "i2c".
rather than
...
> if (IS_ERR(regmap))
> return dev_err_probe(dev, PTR_ERR(regmap),
> - "Failed to init i2c regmap");
> + "Failed to init spi regmap");
While at it, add a trailing \n.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists