diff mbox series

media: i2c: thp7312: Convert comma to semicolon

Message ID 20240702025711.1411715-1-nichen@iscas.ac.cn (mailing list archive)
State New
Headers show
Series media: i2c: thp7312: Convert comma to semicolon | expand

Commit Message

Chen Ni July 2, 2024, 2:57 a.m. UTC
Replace a comma between expression statements by a semicolon.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/media/i2c/thp7312.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Elder July 2, 2024, 7:36 a.m. UTC | #1
On Tue, Jul 02, 2024 at 10:57:11AM +0800, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>

> ---
>  drivers/media/i2c/thp7312.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/thp7312.c b/drivers/media/i2c/thp7312.c
> index 19bd923a7315..75225ff5eff6 100644
> --- a/drivers/media/i2c/thp7312.c
> +++ b/drivers/media/i2c/thp7312.c
> @@ -1503,7 +1503,7 @@ static int __thp7312_flash_reg_read(struct thp7312_device *thp7312,
>  
>  	msgs[0].addr = client->addr;
>  	msgs[0].flags = 0;
> -	msgs[0].len = sizeof(thp7312_cmd_read_reg),
> +	msgs[0].len = sizeof(thp7312_cmd_read_reg);
>  	msgs[0].buf = (u8 *)thp7312_cmd_read_reg;
>  
>  	msgs[1].addr = client->addr;
> -- 
> 2.25.1
> 
>
Laurent Pinchart July 2, 2024, 7:48 a.m. UTC | #2
Hello Chen,

Thank you for the patch.

On Tue, Jul 02, 2024 at 10:57:11AM +0800, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.

Oops.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>  drivers/media/i2c/thp7312.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/thp7312.c b/drivers/media/i2c/thp7312.c
> index 19bd923a7315..75225ff5eff6 100644
> --- a/drivers/media/i2c/thp7312.c
> +++ b/drivers/media/i2c/thp7312.c
> @@ -1503,7 +1503,7 @@ static int __thp7312_flash_reg_read(struct thp7312_device *thp7312,
>  
>  	msgs[0].addr = client->addr;
>  	msgs[0].flags = 0;
> -	msgs[0].len = sizeof(thp7312_cmd_read_reg),
> +	msgs[0].len = sizeof(thp7312_cmd_read_reg);
>  	msgs[0].buf = (u8 *)thp7312_cmd_read_reg;
>  
>  	msgs[1].addr = client->addr;
diff mbox series

Patch

diff --git a/drivers/media/i2c/thp7312.c b/drivers/media/i2c/thp7312.c
index 19bd923a7315..75225ff5eff6 100644
--- a/drivers/media/i2c/thp7312.c
+++ b/drivers/media/i2c/thp7312.c
@@ -1503,7 +1503,7 @@  static int __thp7312_flash_reg_read(struct thp7312_device *thp7312,
 
 	msgs[0].addr = client->addr;
 	msgs[0].flags = 0;
-	msgs[0].len = sizeof(thp7312_cmd_read_reg),
+	msgs[0].len = sizeof(thp7312_cmd_read_reg);
 	msgs[0].buf = (u8 *)thp7312_cmd_read_reg;
 
 	msgs[1].addr = client->addr;