Input: cma3000_d0x - Remove duplicate code
Subsystems (2)
PATCH v2 1/1 Input: cma3000_d0x - Remove duplicate code
Function input_set_abs_params() has already set EV_ABS bit for us.
drivers/input/misc/cma3000_d0x.c:328 cma3000_init() warn: inconsistent indenting.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
---
Changes in v2:
-Remove __set_bit(EV_ABS, input_dev->evbit);
drivers/input/misc/cma3000_d0x.c | 2 -- 1 file changed, 2 deletions(-)
drivers/input/misc/cma3000_d0x.c +0 -2
@@ -325,8 +325,6 @@ 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); -input_set_abs_params (input_dev,ABS_X , -data->g_range, data->g_range, pdata->fuzz_x,0 ); input_set_abs_params(input_dev, ABS_Y,
Signature · 1 line
2.20.1.7.g153144c
Quoted 7 lines · Jiapeng Chong
Function
input_set_abs_params()has already setEV_ABSbit for us.
drivers/input/misc/cma3000_d0x.c:328cma3000_init()warn: inconsistent indenting.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry