iio: imu: st_lsm6dsx: Drop unneeded explicit castings

In a few places the unnecessary explicit castings are being used.
Drop them for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210312134743.4055-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Andy Shevchenko 2021-03-12 15:47:43 +02:00 коммит произвёл Jonathan Cameron
Родитель 897cd10a96
Коммит 9e301ea77d
3 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -29,8 +29,7 @@ static int st_lsm6dsx_i2c_probe(struct i2c_client *client,
regmap = devm_regmap_init_i2c(client, &st_lsm6dsx_i2c_regmap_config); regmap = devm_regmap_init_i2c(client, &st_lsm6dsx_i2c_regmap_config);
if (IS_ERR(regmap)) { if (IS_ERR(regmap)) {
dev_err(&client->dev, "Failed to register i2c regmap %d\n", dev_err(&client->dev, "Failed to register i2c regmap %ld\n", PTR_ERR(regmap));
(int)PTR_ERR(regmap));
return PTR_ERR(regmap); return PTR_ERR(regmap);
} }

Просмотреть файл

@ -34,8 +34,7 @@ static int st_lsm6dsx_i3c_probe(struct i3c_device *i3cdev)
regmap = devm_regmap_init_i3c(i3cdev, &st_lsm6dsx_i3c_regmap_config); regmap = devm_regmap_init_i3c(i3cdev, &st_lsm6dsx_i3c_regmap_config);
if (IS_ERR(regmap)) { if (IS_ERR(regmap)) {
dev_err(&i3cdev->dev, "Failed to register i3c regmap %d\n", dev_err(&i3cdev->dev, "Failed to register i3c regmap %ld\n", PTR_ERR(regmap));
(int)PTR_ERR(regmap));
return PTR_ERR(regmap); return PTR_ERR(regmap);
} }

Просмотреть файл

@ -29,8 +29,7 @@ static int st_lsm6dsx_spi_probe(struct spi_device *spi)
regmap = devm_regmap_init_spi(spi, &st_lsm6dsx_spi_regmap_config); regmap = devm_regmap_init_spi(spi, &st_lsm6dsx_spi_regmap_config);
if (IS_ERR(regmap)) { if (IS_ERR(regmap)) {
dev_err(&spi->dev, "Failed to register spi regmap %d\n", dev_err(&spi->dev, "Failed to register spi regmap %ld\n", PTR_ERR(regmap));
(int)PTR_ERR(regmap));
return PTR_ERR(regmap); return PTR_ERR(regmap);
} }