mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 19:41:19 +00:00
usb: typec: ucsi: ucsi: Staticify and stop export of ucsi_init()
It isn't called from anywhere outside of ucsi.c. Fixes the following W=1 kernel build warning(s): drivers/usb/typec/ucsi/ucsi.c:1005:5: warning: no previous prototype for ‘ucsi_init’ [-Wmissing-prototypes] 1005 | int ucsi_init(struct ucsi *ucsi) | ^~~~~~~~~ Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20200706133341.476881-25-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1a4f38a622
commit
e6b073dea3
1 changed files with 1 additions and 2 deletions
|
@ -1002,7 +1002,7 @@ static int ucsi_register_port(struct ucsi *ucsi, int index)
|
||||||
*
|
*
|
||||||
* Registers all ports @ucsi has and enables all notification events.
|
* Registers all ports @ucsi has and enables all notification events.
|
||||||
*/
|
*/
|
||||||
int ucsi_init(struct ucsi *ucsi)
|
static int ucsi_init(struct ucsi *ucsi)
|
||||||
{
|
{
|
||||||
struct ucsi_connector *con;
|
struct ucsi_connector *con;
|
||||||
u64 command;
|
u64 command;
|
||||||
|
@ -1078,7 +1078,6 @@ err:
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ucsi_init);
|
|
||||||
|
|
||||||
static void ucsi_init_work(struct work_struct *work)
|
static void ucsi_init_work(struct work_struct *work)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue