[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aQx1WVif-vgN0_T-@kuha.fi.intel.com>
Date: Thu, 6 Nov 2025 12:16:48 +0200
From: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
To: Krishna Kurapati <krishna.kurapati@....qualcomm.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Biju Das <biju.das.jz@...renesas.com>,
Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>,
linux-usb@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6 2/2] usb: typec: hd3ss3220: Enable VBUS based on ID
pin state
> struct regulator *vbus;
>
> vbus = devm_of_regulator_get_optional(...
> if (IS_ERR(vbus) && vbus != ERR_PTR(-ENODEV))
> return PTR_ERR(vbus);
>
> hd3ss3220->vbus = vbus;
Sorry, that has to be:
hd3ss3220->vbus = vbus == ERR_PTR(-ENODEV) ? NULL : vbus;
--
heikki
Powered by blists - more mailing lists