Skip to contentSkip to conversation

usb: typec: ucsi: Fix the stub for ucsi_register_port_psy()

PATCH New Heikki Krogerus 1 participant 1 message Apr 27, 2020

Subsystems (2)
lore
Share & tools
lore

Heikki Krogerus

author maintainer
#0 lore raw

PATCH 1/1 usb: typec: ucsi: Fix the stub for ucsi_register_port_psy()

The stub was ucsi_register_port() when it should have been ucsi_register_port_psy().

Fixes 992a60ed0d5e ("usb: typec: ucsi: register with power_supply class")
---
 drivers/usb/typec/ucsi/ucsi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/ucsi/ucsi.h +1 -1
index e52b5540b254..cba6f77bea61 100644
@@ -341,7 +341,7 @@ int ucsi_resume(struct ucsi *ucsi);
 int ucsi_register_port_psy(struct ucsi_connector *con);
 void ucsi_unregister_port_psy(struct ucsi_connector *con);
 #else
-static inline int ucsi_register_port(struct ucsi_connector *con) { return 0; }
+static inline int ucsi_register_port_psy(struct ucsi_connector *con) { return 0; }
 static inline void ucsi_unregister_port_psy(struct ucsi_connector *con) { }
 #endif /* CONFIG_POWER_SUPPLY */
 
Signature · 1 line
2.26.2