diff mbox series

[-next] power: supply: ab8500_fg: convert comma to semicolon

Message ID 20201214134000.4243-1-zhengyongjun3@huawei.com
State Accepted
Commit f005e63100b370fac850221f9ba217a1a25e3014
Headers show
Series [-next] power: supply: ab8500_fg: convert comma to semicolon | expand

Commit Message

Zheng Yongjun Dec. 14, 2020, 1:40 p.m. UTC
Replace a comma between expression statements by a semicolon.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
 drivers/power/supply/ab8500_fg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sebastian Reichel Jan. 16, 2021, 11:43 a.m. UTC | #1
Hi,

On Mon, Dec 14, 2020 at 09:40:00PM +0800, Zheng Yongjun wrote:
> Replace a comma between expression statements by a semicolon.

> 

> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>

> ---


Thanks, queued.

-- Sebastian

>  drivers/power/supply/ab8500_fg.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c

> index 592a73d4dde6..6594f09c993c 100644

> --- a/drivers/power/supply/ab8500_fg.c

> +++ b/drivers/power/supply/ab8500_fg.c

> @@ -857,7 +857,7 @@ static int ab8500_fg_volt_to_capacity(struct ab8500_fg *di, int voltage)

>  	const struct abx500_v_to_cap *tbl;

>  	int cap = 0;

>  

> -	tbl = di->bm->bat_type[di->bm->batt_id].v_to_cap_tbl,

> +	tbl = di->bm->bat_type[di->bm->batt_id].v_to_cap_tbl;

>  	tbl_size = di->bm->bat_type[di->bm->batt_id].n_v_cap_tbl_elements;

>  

>  	for (i = 0; i < tbl_size; ++i) {

> -- 

> 2.22.0

>
diff mbox series

Patch

diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c
index 592a73d4dde6..6594f09c993c 100644
--- a/drivers/power/supply/ab8500_fg.c
+++ b/drivers/power/supply/ab8500_fg.c
@@ -857,7 +857,7 @@  static int ab8500_fg_volt_to_capacity(struct ab8500_fg *di, int voltage)
 	const struct abx500_v_to_cap *tbl;
 	int cap = 0;
 
-	tbl = di->bm->bat_type[di->bm->batt_id].v_to_cap_tbl,
+	tbl = di->bm->bat_type[di->bm->batt_id].v_to_cap_tbl;
 	tbl_size = di->bm->bat_type[di->bm->batt_id].n_v_cap_tbl_elements;
 
 	for (i = 0; i < tbl_size; ++i) {