summaryrefslogtreecommitdiff
path: root/drivers/iio/humidity/hts221_i2c.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-03-13 13:49:55 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-03-21 13:27:15 +0300
commit144eb562becf64aeff1975f99932ddba0c1616d0 (patch)
tree4da99e35f6a52343168c7dc40733a6609696a268 /drivers/iio/humidity/hts221_i2c.c
parent92c3e93b7d2d8d9505f295d2caff58b91b407fa2 (diff)
downloadlinux-144eb562becf64aeff1975f99932ddba0c1616d0.tar.xz
iio: humidity: hts221: 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/humidity/hts221_i2c.c')
-rw-r--r--drivers/iio/humidity/hts221_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/humidity/hts221_i2c.c b/drivers/iio/humidity/hts221_i2c.c
index 1398794e4bc7..cab39c4756f8 100644
--- a/drivers/iio/humidity/hts221_i2c.c
+++ b/drivers/iio/humidity/hts221_i2c.c
@@ -32,8 +32,8 @@ static int hts221_i2c_probe(struct i2c_client *client,
regmap = devm_regmap_init_i2c(client, &hts221_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);
}