Skip to content

Commit 986d67f

Browse files
losgobbigregkh
authored andcommitted
iio: imu: bmi270: fix dev_err_probe error msg
[ Upstream commit 02f8610 ] 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: 92cc50a ("iio: imu: bmi270: Add spi driver for bmi270 imu") Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent e463548 commit 986d67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/imu/bmi270/bmi270_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static int bmi270_spi_probe(struct spi_device *spi)
6060
&bmi270_spi_regmap_config);
6161
if (IS_ERR(regmap))
6262
return dev_err_probe(dev, PTR_ERR(regmap),
63-
"Failed to init i2c regmap");
63+
"Failed to init spi regmap\n");
6464

6565
return bmi270_core_probe(dev, regmap, chip_info);
6666
}

0 commit comments

Comments
 (0)