Skip to content

Commit 897cd10

Browse files
andy-shevjic23
authored andcommitted
iio: imu: fxos8700: Drop unneeded explicit castings
In a few places the unnecessary explicit castings are being used. Drop them for good. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent d612eb1 commit 897cd10

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

drivers/iio/imu/fxos8700_i2c.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ static int fxos8700_i2c_probe(struct i2c_client *client,
2626

2727
regmap = devm_regmap_init_i2c(client, &fxos8700_regmap_config);
2828
if (IS_ERR(regmap)) {
29-
dev_err(&client->dev, "Failed to register i2c regmap %d\n",
30-
(int)PTR_ERR(regmap));
29+
dev_err(&client->dev, "Failed to register i2c regmap %ld\n", PTR_ERR(regmap));
3130
return PTR_ERR(regmap);
3231
}
3332

drivers/iio/imu/fxos8700_spi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ static int fxos8700_spi_probe(struct spi_device *spi)
1717

1818
regmap = devm_regmap_init_spi(spi, &fxos8700_regmap_config);
1919
if (IS_ERR(regmap)) {
20-
dev_err(&spi->dev, "Failed to register spi regmap %d\n",
21-
(int)PTR_ERR(regmap));
20+
dev_err(&spi->dev, "Failed to register spi regmap %ld\n", PTR_ERR(regmap));
2221
return PTR_ERR(regmap);
2322
}
2423

0 commit comments

Comments
 (0)