On Wed, Mar 13, 2024 at 05:54:16AM +0200, Dmitry Baryshkov wrote: > Use typec_partner_usb_power_delivery_register() to register PD device > for Type-C partner so that the PD device is nested under the partner's > device in sysfs. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> Reviewed-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx> > --- > drivers/usb/typec/ucsi/ucsi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c > index 72d368433b1f..78e04b7701c8 100644 > --- a/drivers/usb/typec/ucsi/ucsi.c > +++ b/drivers/usb/typec/ucsi/ucsi.c > @@ -833,7 +833,7 @@ static int ucsi_register_partner_pdos(struct ucsi_connector *con) > if (con->partner_pd) > return 0; > > - con->partner_pd = usb_power_delivery_register(NULL, &desc); > + con->partner_pd = typec_partner_usb_power_delivery_register(con->partner, &desc); > if (IS_ERR(con->partner_pd)) > return PTR_ERR(con->partner_pd); > > > -- > 2.39.2 -- heikki