]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iio: light: gp2ap002: Drop unneeded explicit casting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 12 Mar 2021 13:49:03 +0000 (15:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 25 Mar 2021 19:13:50 +0000 (19:13 +0000)
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>
drivers/iio/light/gp2ap002.c

index 7ba7aa59437c3d51f31707e98cd1af2922f983c1..d048ae257c5198759e576ed2053abfa5207128d9 100644 (file)
@@ -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;