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 <abhilash.k.v@intel.com>
Fixes: 992a60ed0d ("usb: typec: ucsi: register with power_supply class")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200427111246.4889-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Heikki Krogerus 2020-04-27 14:12:46 +03:00 committed by Greg Kroah-Hartman
parent f6402eb4a2
commit 1417cff96e

View File

@ -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 */