Skip to content

Commit

Permalink
iio: imu: fxos8700: Drop unneeded explicit castings
Browse files Browse the repository at this point in the history
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/20210312134538.3759-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Andy Shevchenko authored and Jonathan Cameron committed Mar 25, 2021
1 parent d612eb1 commit 897cd10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/iio/imu/fxos8700_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ static int fxos8700_i2c_probe(struct i2c_client *client,

regmap = devm_regmap_init_i2c(client, &fxos8700_regmap_config);
if (IS_ERR(regmap)) {
dev_err(&client->dev, "Failed to register i2c regmap %d\n",
(int)PTR_ERR(regmap));
dev_err(&client->dev, "Failed to register i2c regmap %ld\n", PTR_ERR(regmap));
return PTR_ERR(regmap);
}

Expand Down
3 changes: 1 addition & 2 deletions drivers/iio/imu/fxos8700_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ static int fxos8700_spi_probe(struct spi_device *spi)

regmap = devm_regmap_init_spi(spi, &fxos8700_regmap_config);
if (IS_ERR(regmap)) {
dev_err(&spi->dev, "Failed to register spi regmap %d\n",
(int)PTR_ERR(regmap));
dev_err(&spi->dev, "Failed to register spi regmap %ld\n", PTR_ERR(regmap));
return PTR_ERR(regmap);
}

Expand Down

0 comments on commit 897cd10

Please sign in to comment.