Skip to content

Commit

Permalink
usb: typec: ucsi: ucsi: Staticify and stop export of ucsi_init()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Lee Jones authored and gregkh committed Jul 9, 2020
1 parent 1a4f38a commit e6b073d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/typec/ucsi/ucsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ static int ucsi_register_port(struct ucsi *ucsi, int index)
*
* 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;
u64 command;
Expand Down Expand Up @@ -1078,7 +1078,6 @@ int ucsi_init(struct ucsi *ucsi)

return ret;
}
EXPORT_SYMBOL_GPL(ucsi_init);

static void ucsi_init_work(struct work_struct *work)
{
Expand Down

0 comments on commit e6b073d

Please sign in to comment.