From 1417cff96ef8ae2108df7084f035b90d2eabbba3 Mon Sep 17 00:00:00 2001 From: Heikki Krogerus Date: Mon, 27 Apr 2020 14:12:46 +0300 Subject: [PATCH] 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(). Cc: Abhilash K V Fixes: 992a60ed0d5e ("usb: typec: ucsi: register with power_supply class") Reported-by: kbuild test robot Signed-off-by: Heikki Krogerus Link: https://lore.kernel.org/r/20200427111246.4889-1-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/typec/ucsi/ucsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h index e52b5540b254..cba6f77bea61 100644 --- a/drivers/usb/typec/ucsi/ucsi.h +++ b/drivers/usb/typec/ucsi/ucsi.h @@ -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 */