[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181023053954.zsvkq2wqwnyp2xrd@mwanda>
Date: Tue, 23 Oct 2018 08:39:54 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Nishad Kamdar <nishadkamdar@...il.com>
Cc: Lars-Peter Clausen <lars@...afoo.de>, devel@...verdev.osuosl.org,
Michael Hennerich <Michael.Hennerich@...log.com>,
linux-iio@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Hartmut Knaack <knaack.h@....de>,
Slawomir Stepien <sst@...zta.fm>,
Jonathan Cameron <jic23@...nel.org>
Subject: Re: [PATCH] staging: iio: adt7316: Switch to the gpio descriptor
interface
On Mon, Oct 22, 2018 at 10:44:22PM +0530, Nishad Kamdar wrote:
> - chip->ldac_pin = adt7316_platform_data[1];
> + chip->ldac_pin = devm_gpiod_get(dev, "ldac", GPIOD_OUT_HIGH);
> + if (IS_ERR(chip->ldac_pin)) {
> + ret = PTR_ERR(chip->ldac_pin);
> + dev_err(dev, "Failed to request ldac GPIO: %d\n",
> + ret);
This can fit on one line:
dev_err(dev, "Failed to request ldac GPIO: %d\n", ret);
regards,
dan carpenter
> + return ret;
> + }
Powered by blists - more mailing lists