Re: [PATCH v6 2/2] usb: typec: hd3ss3220: Enable VBUS based on ID pin state
From: Krishna Kurapati PSSNV
Date: Thu Nov 06 2025 - 10:23:53 EST
On 11/6/2025 3:46 PM, Heikki Krogerus wrote:
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;
Thanks for the review Heikki.
Will update the suggestions in next revision.
Regards,
Krishna,