* [PATCH -next] usb: ucsi: convert comma to semicolon
@ 2020-12-11 8:55 Zheng Yongjun
2020-12-11 9:07 ` Heikki Krogerus
0 siblings, 1 reply; 2+ messages in thread
From: Zheng Yongjun @ 2020-12-11 8:55 UTC (permalink / raw)
To: heikki.krogerus, linux-usb, linux-kernel; +Cc: gregkh, Zheng Yongjun
Replace a comma between expression statements by a semicolon.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
drivers/usb/typec/ucsi/psy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/typec/ucsi/psy.c b/drivers/usb/typec/ucsi/psy.c
index 571a51e16234..56bf56517f75 100644
--- a/drivers/usb/typec/ucsi/psy.c
+++ b/drivers/usb/typec/ucsi/psy.c
@@ -220,11 +220,11 @@ int ucsi_register_port_psy(struct ucsi_connector *con)
return -ENOMEM;
con->psy_desc.name = psy_name;
- con->psy_desc.type = POWER_SUPPLY_TYPE_USB,
+ con->psy_desc.type = POWER_SUPPLY_TYPE_USB;
con->psy_desc.usb_types = ucsi_psy_usb_types;
con->psy_desc.num_usb_types = ARRAY_SIZE(ucsi_psy_usb_types);
- con->psy_desc.properties = ucsi_psy_props,
- con->psy_desc.num_properties = ARRAY_SIZE(ucsi_psy_props),
+ con->psy_desc.properties = ucsi_psy_props;
+ con->psy_desc.num_properties = ARRAY_SIZE(ucsi_psy_props);
con->psy_desc.get_property = ucsi_psy_get_prop;
con->psy = power_supply_register(dev, &con->psy_desc, &psy_cfg);
--
2.22.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] usb: ucsi: convert comma to semicolon
2020-12-11 8:55 [PATCH -next] usb: ucsi: convert comma to semicolon Zheng Yongjun
@ 2020-12-11 9:07 ` Heikki Krogerus
0 siblings, 0 replies; 2+ messages in thread
From: Heikki Krogerus @ 2020-12-11 9:07 UTC (permalink / raw)
To: Zheng Yongjun; +Cc: linux-usb, linux-kernel, gregkh
On Fri, Dec 11, 2020 at 04:55:10PM +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/ucsi/psy.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/usb/typec/ucsi/psy.c b/drivers/usb/typec/ucsi/psy.c
> index 571a51e16234..56bf56517f75 100644
> --- a/drivers/usb/typec/ucsi/psy.c
> +++ b/drivers/usb/typec/ucsi/psy.c
> @@ -220,11 +220,11 @@ int ucsi_register_port_psy(struct ucsi_connector *con)
> return -ENOMEM;
>
> con->psy_desc.name = psy_name;
> - con->psy_desc.type = POWER_SUPPLY_TYPE_USB,
> + con->psy_desc.type = POWER_SUPPLY_TYPE_USB;
> con->psy_desc.usb_types = ucsi_psy_usb_types;
> con->psy_desc.num_usb_types = ARRAY_SIZE(ucsi_psy_usb_types);
> - con->psy_desc.properties = ucsi_psy_props,
> - con->psy_desc.num_properties = ARRAY_SIZE(ucsi_psy_props),
> + con->psy_desc.properties = ucsi_psy_props;
> + con->psy_desc.num_properties = ARRAY_SIZE(ucsi_psy_props);
> con->psy_desc.get_property = ucsi_psy_get_prop;
>
> con->psy = power_supply_register(dev, &con->psy_desc, &psy_cfg);
> --
> 2.22.0
thanks,
--
heikki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-11 9:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 8:55 [PATCH -next] usb: ucsi: convert comma to semicolon Zheng Yongjun
2020-12-11 9:07 ` Heikki Krogerus
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.