提交 1417cff9 编写于 作者: H Heikki Krogerus 提交者: Greg Kroah-Hartman

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: 992a60ed ("usb: typec: ucsi: register with power_supply class")
Reported-by: Nkbuild test robot <lkp@intel.com>
Signed-off-by: NHeikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200427111246.4889-1-heikki.krogerus@linux.intel.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f6402eb4
...@@ -341,7 +341,7 @@ int ucsi_resume(struct ucsi *ucsi); ...@@ -341,7 +341,7 @@ int ucsi_resume(struct ucsi *ucsi);
int ucsi_register_port_psy(struct ucsi_connector *con); int ucsi_register_port_psy(struct ucsi_connector *con);
void ucsi_unregister_port_psy(struct ucsi_connector *con); void ucsi_unregister_port_psy(struct ucsi_connector *con);
#else #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) { } static inline void ucsi_unregister_port_psy(struct ucsi_connector *con) { }
#endif /* CONFIG_POWER_SUPPLY */ #endif /* CONFIG_POWER_SUPPLY */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册