diff mbox series

Input: cma3000_d0x - Clean up some inconsistent indenting

Message ID 20230322064158.4043-1-jiapeng.chong@linux.alibaba.com (mailing list archive)
State New, archived
Headers show
Series Input: cma3000_d0x - Clean up some inconsistent indenting | expand

Commit Message

Jiapeng Chong March 22, 2023, 6:41 a.m. UTC
No functional modification involved.

drivers/input/misc/cma3000_d0x.c:328 cma3000_init() warn: inconsistent indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4588
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/input/misc/cma3000_d0x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dmitry Torokhov April 2, 2023, 1:46 a.m. UTC | #1
Hi Jiapeng,

On Wed, Mar 22, 2023 at 02:41:58PM +0800, Jiapeng Chong wrote:
> No functional modification involved.
> 
> drivers/input/misc/cma3000_d0x.c:328 cma3000_init() warn: inconsistent indenting.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4588
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
>  drivers/input/misc/cma3000_d0x.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/input/misc/cma3000_d0x.c b/drivers/input/misc/cma3000_d0x.c
> index e6feb73bb52b..c444a44e4576 100644
> --- a/drivers/input/misc/cma3000_d0x.c
> +++ b/drivers/input/misc/cma3000_d0x.c
> @@ -325,7 +325,7 @@ struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
>  	input_dev->open = cma3000_open;
>  	input_dev->close = cma3000_close;
>  
> -	 __set_bit(EV_ABS, input_dev->evbit);
> +	__set_bit(EV_ABS, input_dev->evbit);

We should simply remove this, as input_set_abs_params() will set EV_ABS
bit for us.

>  
>  	input_set_abs_params(input_dev, ABS_X,
>  			-data->g_range, data->g_range, pdata->fuzz_x, 0);
> -- 
> 2.20.1.7.g153144c
> 

Thanks.
diff mbox series

Patch

diff --git a/drivers/input/misc/cma3000_d0x.c b/drivers/input/misc/cma3000_d0x.c
index e6feb73bb52b..c444a44e4576 100644
--- a/drivers/input/misc/cma3000_d0x.c
+++ b/drivers/input/misc/cma3000_d0x.c
@@ -325,7 +325,7 @@  struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
 	input_dev->open = cma3000_open;
 	input_dev->close = cma3000_close;
 
-	 __set_bit(EV_ABS, input_dev->evbit);
+	__set_bit(EV_ABS, input_dev->evbit);
 
 	input_set_abs_params(input_dev, ABS_X,
 			-data->g_range, data->g_range, pdata->fuzz_x, 0);