diff mbox series

usb: typec: ucsi: Fix a comment in ucsi_init()

Message ID 1623274076-6287-1-git-send-email-subbaram@codeaurora.org (mailing list archive)
State Accepted
Commit 12f739798470288c8c1053484fe0281fe4cc5ea4
Headers show
Series usb: typec: ucsi: Fix a comment in ucsi_init() | expand

Commit Message

Subbaraman Narayanamurthy June 9, 2021, 9:27 p.m. UTC
ucsi_unregister_ppm() got replaced with ucsi_unregister(). Fix
the comment in ucsi_init() as well.

Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
---
 drivers/usb/typec/ucsi/ucsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Heikki Krogerus June 10, 2021, 12:29 p.m. UTC | #1
On Wed, Jun 09, 2021 at 02:27:56PM -0700, Subbaraman Narayanamurthy wrote:
> ucsi_unregister_ppm() got replaced with ucsi_unregister(). Fix
> the comment in ucsi_init() as well.
> 
> Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
>  drivers/usb/typec/ucsi/ucsi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
> index b433169..96cf541 100644
> --- a/drivers/usb/typec/ucsi/ucsi.c
> +++ b/drivers/usb/typec/ucsi/ucsi.c
> @@ -1219,7 +1219,7 @@ static int ucsi_init(struct ucsi *ucsi)
>  		goto err_reset;
>  	}
>  
> -	/* Allocate the connectors. Released in ucsi_unregister_ppm() */
> +	/* Allocate the connectors. Released in ucsi_unregister() */
>  	ucsi->connector = kcalloc(ucsi->cap.num_connectors + 1,
>  				  sizeof(*ucsi->connector), GFP_KERNEL);
>  	if (!ucsi->connector) {
diff mbox series

Patch

diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
index b433169..96cf541 100644
--- a/drivers/usb/typec/ucsi/ucsi.c
+++ b/drivers/usb/typec/ucsi/ucsi.c
@@ -1219,7 +1219,7 @@  static int ucsi_init(struct ucsi *ucsi)
 		goto err_reset;
 	}
 
-	/* Allocate the connectors. Released in ucsi_unregister_ppm() */
+	/* Allocate the connectors. Released in ucsi_unregister() */
 	ucsi->connector = kcalloc(ucsi->cap.num_connectors + 1,
 				  sizeof(*ucsi->connector), GFP_KERNEL);
 	if (!ucsi->connector) {