Re: [PATCH] iio: imu: bmi270: fix dev_err_probe error msg
From: Andy Shevchenko
Date: Sat Oct 11 2025 - 10:31:26 EST
On Fri, Oct 10, 2025 at 10:11 PM Rodrigo Gobbi
<rodrigo.gobbi.7@xxxxxxxxx> 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