* [PATCH v1 1/1] iio: light: gp2ap002: Drop unneeded explicit casting
@ 2021-03-12 13:49 Andy Shevchenko
2021-03-13 15:11 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2021-03-12 13:49 UTC (permalink / raw)
To: Jonathan Cameron, Jonathan Bakker, linux-iio, linux-kernel
Cc: Linus Walleij, Jonathan Cameron, Lars-Peter Clausen,
Peter Meerwald-Stadler, Andy Shevchenko
The unnecessary explicit casting is being used. Drop it for good.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/iio/light/gp2ap002.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/iio/light/gp2ap002.c b/drivers/iio/light/gp2ap002.c
index 7ba7aa59437c..d048ae257c51 100644
--- a/drivers/iio/light/gp2ap002.c
+++ b/drivers/iio/light/gp2ap002.c
@@ -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;
--
2.30.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] iio: light: gp2ap002: Drop unneeded explicit casting
2021-03-12 13:49 [PATCH v1 1/1] iio: light: gp2ap002: Drop unneeded explicit casting Andy Shevchenko
@ 2021-03-13 15:11 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2021-03-13 15:11 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Jonathan Cameron, Jonathan Bakker, linux-iio, linux-kernel,
Linus Walleij, Lars-Peter Clausen, Peter Meerwald-Stadler
On Fri, 12 Mar 2021 15:49:03 +0200
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> The unnecessary explicit casting is being used. Drop it for good.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Applied to the togreg branch of iio.git.
These were all so simple I didn't wait for reviews, but if anyone wants
to add any tags I can still do that as only pushed out as testing
so far to give the autobuilders something to poke at.
Thanks,
Jonathan
> ---
> drivers/iio/light/gp2ap002.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/iio/light/gp2ap002.c b/drivers/iio/light/gp2ap002.c
> index 7ba7aa59437c..d048ae257c51 100644
> --- a/drivers/iio/light/gp2ap002.c
> +++ b/drivers/iio/light/gp2ap002.c
> @@ -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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-13 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 13:49 [PATCH v1 1/1] iio: light: gp2ap002: Drop unneeded explicit casting Andy Shevchenko
2021-03-13 15:11 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).