[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VfgbA0upoHyDLPCRGrN+7H5mZiDu-GbQPxHid++Z9UqQA@mail.gmail.com>
Date: Mon, 30 Aug 2021 13:56:23 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Alejandro Tafalla <atafalla@...on.com>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
ALSA Development Mailing List <alsa-devel@...a-project.org>,
Rob Herring <robh+dt@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
devicetree <devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 1/2] ASoC: max98927: Handle reset gpio when probing i2c
On Mon, Aug 30, 2021 at 1:48 PM Alejandro Tafalla <atafalla@...on.com> wrote:
>
> Drive the reset gpio if defined in the DTS node.
...
> + reset_gpio
> + = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_LOW);
A bit of a strange indentation, shouldn't it be one line?
> + if (IS_ERR(reset_gpio)) {
> + ret = PTR_ERR(reset_gpio);
> + return dev_err_probe(&i2c->dev, ret,
> + "failed to request GPIO reset pin");
It simply as
return dev_err_probe(&i2c->dev, PTR_ERR(reset_gpio),
"failed to request GPIO reset pin");
> + }
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists