Skip to contentSkip to conversation

iio: imu: bmi270: fix dev_err_probe error msg

PATCH Applied Rodrigo Gobbi 3 participants 3 messages Nov 2, 2025 – Nov 9, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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".

Fixes 92cc50a00574 ("iio: imu: bmi270: Add spi driver for bmi270 imu")

---
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
index 19dd7734f9d0..80c9fa1d685a 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
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
maintainer Applied
#2 lore raw
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".

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