iio: imu: bmi270: fix dev_err_probe error msg
Subsystems (2)
PATCH v2 1/1 iio: imu: bmi270: fix dev_err_probe error msg
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".
---
Changelog:
v2: add trailing and fixes tag
v1: https://lore.kernel.org/all/[email protected]/
--- drivers/iio/imu/bmi270/bmi270_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/imu/bmi270/bmi270_spi.c +1 -1
@@ -60,7 +60,7 @@ static int bmi270_spi_probe(struct spi_device *spi) &bmi270_spi_regmap_config);if (IS_ERR (regmap))return dev_err_probe (dev,PTR_ERR (regmap), -"Failed to init i2c regmap" ); +"Failed to init spi regmap\n" );return bmi270_core_probe (dev, regmap, chip_info); }
Signature · 1 line
2.48.1
Quoted 3 lines · Rodrigo Gobbi
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".
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 7 lines · On Mon, 3 Nov 2025 09:55:03 +0200 Andy Shevchenko…
Quoted 3 lines · Rodrigo Gobbi
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".Reviewed-by Andy Shevchenko <[email protected]>
Applied to the togreg branch of iio.git. I'm not in a particular rush to get an error message fix in so this can wait for the next merge window.
Thanks,
Jonathan