summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/st_uvis25_i2c.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-03-13 12:49:48 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-03-21 10:25:59 +0000
commit3c50dee99588301869cdab857e70dfbb1b9ba6f0 (patch)
tree3b5ca60c2f2f6ed766a12ea47dcf71d5e76cbed4 /drivers/iio/light/st_uvis25_i2c.c
parent35a4eeb055c9c35ed3c4cdc340547468bf18368e (diff)
downloadlinux-stable-3c50dee99588301869cdab857e70dfbb1b9ba6f0.tar.gz
linux-stable-3c50dee99588301869cdab857e70dfbb1b9ba6f0.tar.bz2
linux-stable-3c50dee99588301869cdab857e70dfbb1b9ba6f0.zip
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light/st_uvis25_i2c.c')
-rw-r--r--drivers/iio/light/st_uvis25_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/light/st_uvis25_i2c.c b/drivers/iio/light/st_uvis25_i2c.c
index 4889bbeb0c73..400724069d19 100644
--- a/drivers/iio/light/st_uvis25_i2c.c
+++ b/drivers/iio/light/st_uvis25_i2c.c
@@ -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);
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);
}