iio: light: st_uvis25: Drop unneeded casting when print error code

Explicit casting in printf() usually shows that something is not okay.
Here, we really don't need it by providing correct specifier.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Andy Shevchenko 2020-03-13 12:49:48 +02:00 коммит произвёл Jonathan Cameron
Родитель 35a4eeb055
Коммит 3c50dee995
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -31,8 +31,8 @@ static int st_uvis25_i2c_probe(struct i2c_client *client,
regmap = devm_regmap_init_i2c(client, &st_uvis25_i2c_regmap_config); regmap = devm_regmap_init_i2c(client, &st_uvis25_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",
(int)PTR_ERR(regmap)); PTR_ERR(regmap));
return PTR_ERR(regmap); return PTR_ERR(regmap);
} }

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

@ -31,8 +31,8 @@ static int st_uvis25_spi_probe(struct spi_device *spi)
regmap = devm_regmap_init_spi(spi, &st_uvis25_spi_regmap_config); regmap = devm_regmap_init_spi(spi, &st_uvis25_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",
(int)PTR_ERR(regmap)); PTR_ERR(regmap));
return PTR_ERR(regmap); return PTR_ERR(regmap);
} }