[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6ea973d8-e625-47fd-a69a-b39c22f2ccc7@gmx.net>
Date: Mon, 25 Nov 2024 16:49:26 +0100
From: Stefan Wahren <wahrenst@....net>
To: Kryštof Černý <cleverline1mc@...il.com>
Cc: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Ben Gardner <bgardner@...tec.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>
Subject: Re: [PATCH v3 1/3] w1: ds2482: Add regulator support
Hi Kryštof,
> + ret = devm_regulator_get_enable(&client->dev, "vcc");
> + if (ret) {
> + dev_err(&client->dev, "Fail to enable regulator\n");
> + return ret;
> + }
I'm fine with using devm_regulator_get_enable() because it doesn't break
existing DTS like imx6ull-tarragon-master, which doesn't have vcc defined.
But please use dev_err_probe() here instead and s/Fail/Failed/ in the
error message.
Best regards
Powered by blists - more mailing lists