diff mbox series

[-next] usb: typec: tcpm: convert comma to semicolon

Message ID 20201211085553.2982-1-zhengyongjun3@huawei.com (mailing list archive)
State Accepted
Commit b5206275b46c30a8236feb34a1dc247fa3683d83
Headers show
Series [-next] usb: typec: tcpm: convert comma to semicolon | expand

Commit Message

Zheng Yongjun Dec. 11, 2020, 8:55 a.m. UTC
Replace a comma between expression statements by a semicolon.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
 drivers/usb/typec/tcpm/tcpm.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Heikki Krogerus Dec. 11, 2020, 9:07 a.m. UTC | #1
On Fri, Dec 11, 2020 at 04:55:53PM +0800, Zheng Yongjun wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>

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

> ---
>  drivers/usb/typec/tcpm/tcpm.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
> index a6fae1f86505..4451507d600c 100644
> --- a/drivers/usb/typec/tcpm/tcpm.c
> +++ b/drivers/usb/typec/tcpm/tcpm.c
> @@ -5024,14 +5024,14 @@ static int devm_tcpm_psy_register(struct tcpm_port *port)
>  	snprintf(psy_name, psy_name_len, "%s%s", tcpm_psy_name_prefix,
>  		 port_dev_name);
>  	port->psy_desc.name = psy_name;
> -	port->psy_desc.type = POWER_SUPPLY_TYPE_USB,
> +	port->psy_desc.type = POWER_SUPPLY_TYPE_USB;
>  	port->psy_desc.usb_types = tcpm_psy_usb_types;
>  	port->psy_desc.num_usb_types = ARRAY_SIZE(tcpm_psy_usb_types);
> -	port->psy_desc.properties = tcpm_psy_props,
> -	port->psy_desc.num_properties = ARRAY_SIZE(tcpm_psy_props),
> -	port->psy_desc.get_property = tcpm_psy_get_prop,
> -	port->psy_desc.set_property = tcpm_psy_set_prop,
> -	port->psy_desc.property_is_writeable = tcpm_psy_prop_writeable,
> +	port->psy_desc.properties = tcpm_psy_props;
> +	port->psy_desc.num_properties = ARRAY_SIZE(tcpm_psy_props);
> +	port->psy_desc.get_property = tcpm_psy_get_prop;
> +	port->psy_desc.set_property = tcpm_psy_set_prop;
> +	port->psy_desc.property_is_writeable = tcpm_psy_prop_writeable;
>  
>  	port->usb_type = POWER_SUPPLY_USB_TYPE_C;
>  
> -- 
> 2.22.0

thanks,
Guenter Roeck Dec. 11, 2020, 3:10 p.m. UTC | #2
On 12/11/20 12:55 AM, Zheng Yongjun wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>  drivers/usb/typec/tcpm/tcpm.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
> index a6fae1f86505..4451507d600c 100644
> --- a/drivers/usb/typec/tcpm/tcpm.c
> +++ b/drivers/usb/typec/tcpm/tcpm.c
> @@ -5024,14 +5024,14 @@ static int devm_tcpm_psy_register(struct tcpm_port *port)
>  	snprintf(psy_name, psy_name_len, "%s%s", tcpm_psy_name_prefix,
>  		 port_dev_name);
>  	port->psy_desc.name = psy_name;
> -	port->psy_desc.type = POWER_SUPPLY_TYPE_USB,
> +	port->psy_desc.type = POWER_SUPPLY_TYPE_USB;
>  	port->psy_desc.usb_types = tcpm_psy_usb_types;
>  	port->psy_desc.num_usb_types = ARRAY_SIZE(tcpm_psy_usb_types);
> -	port->psy_desc.properties = tcpm_psy_props,
> -	port->psy_desc.num_properties = ARRAY_SIZE(tcpm_psy_props),
> -	port->psy_desc.get_property = tcpm_psy_get_prop,
> -	port->psy_desc.set_property = tcpm_psy_set_prop,
> -	port->psy_desc.property_is_writeable = tcpm_psy_prop_writeable,
> +	port->psy_desc.properties = tcpm_psy_props;
> +	port->psy_desc.num_properties = ARRAY_SIZE(tcpm_psy_props);
> +	port->psy_desc.get_property = tcpm_psy_get_prop;
> +	port->psy_desc.set_property = tcpm_psy_set_prop;
> +	port->psy_desc.property_is_writeable = tcpm_psy_prop_writeable;
>  
>  	port->usb_type = POWER_SUPPLY_USB_TYPE_C;
>  
>
diff mbox series

Patch

diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
index a6fae1f86505..4451507d600c 100644
--- a/drivers/usb/typec/tcpm/tcpm.c
+++ b/drivers/usb/typec/tcpm/tcpm.c
@@ -5024,14 +5024,14 @@  static int devm_tcpm_psy_register(struct tcpm_port *port)
 	snprintf(psy_name, psy_name_len, "%s%s", tcpm_psy_name_prefix,
 		 port_dev_name);
 	port->psy_desc.name = psy_name;
-	port->psy_desc.type = POWER_SUPPLY_TYPE_USB,
+	port->psy_desc.type = POWER_SUPPLY_TYPE_USB;
 	port->psy_desc.usb_types = tcpm_psy_usb_types;
 	port->psy_desc.num_usb_types = ARRAY_SIZE(tcpm_psy_usb_types);
-	port->psy_desc.properties = tcpm_psy_props,
-	port->psy_desc.num_properties = ARRAY_SIZE(tcpm_psy_props),
-	port->psy_desc.get_property = tcpm_psy_get_prop,
-	port->psy_desc.set_property = tcpm_psy_set_prop,
-	port->psy_desc.property_is_writeable = tcpm_psy_prop_writeable,
+	port->psy_desc.properties = tcpm_psy_props;
+	port->psy_desc.num_properties = ARRAY_SIZE(tcpm_psy_props);
+	port->psy_desc.get_property = tcpm_psy_get_prop;
+	port->psy_desc.set_property = tcpm_psy_set_prop;
+	port->psy_desc.property_is_writeable = tcpm_psy_prop_writeable;
 
 	port->usb_type = POWER_SUPPLY_USB_TYPE_C;