Skip to content

Commit

Permalink
iio: light: gp2ap002: Drop unneeded explicit casting
Browse files Browse the repository at this point in the history
The unnecessary explicit casting is being used. Drop it for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210312134903.4296-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 9e301ea commit 941f667
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/iio/light/gp2ap002.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,7 @@ static int gp2ap002_probe(struct i2c_client *client,

regmap = devm_regmap_init(dev, &gp2ap002_regmap_bus, dev, &config);
if (IS_ERR(regmap)) {
dev_err(dev, "Failed to register i2c regmap %d\n",
(int)PTR_ERR(regmap));
dev_err(dev, "Failed to register i2c regmap %ld\n", PTR_ERR(regmap));
return PTR_ERR(regmap);
}
gp2ap002->map = regmap;
Expand Down

0 comments on commit 941f667

Please sign in to comment.