Commit 3c50dee9 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Jonathan Cameron

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 35a4eeb0
...@@ -31,8 +31,8 @@ static int st_uvis25_i2c_probe(struct i2c_client *client, ...@@ -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) ...@@ -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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment