linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	Jonathan Bakker <xc-racer2@live.ca>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	Linus Walleij <linus.walleij@linaro.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Subject: Re: [PATCH v1 1/1] iio: light: gp2ap002: Drop unneeded explicit casting
Date: Sat, 13 Mar 2021 15:11:42 +0000	[thread overview]
Message-ID: <20210313151142.20be8230@archlinux> (raw)
In-Reply-To: <20210312134903.4296-1-andriy.shevchenko@linux.intel.com>

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;


      reply	other threads:[~2021-03-13 15:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210313151142.20be8230@archlinux \
    --to=jic23@kernel.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=lars@metafoo.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    --cc=xc-racer2@live.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).