Skip to content

Commit cd7cd6f

Browse files
wb-zjp846396dtor
authored andcommitted
Input: cma3000_d0x - remove unneeded 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 <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://lore.kernel.org/r/20230407021343.63512-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 0df28e7 commit cd7cd6f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/input/misc/cma3000_d0x.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,6 @@ struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
325325
input_dev->open = cma3000_open;
326326
input_dev->close = cma3000_close;
327327

328-
__set_bit(EV_ABS, input_dev->evbit);
329-
330328
input_set_abs_params(input_dev, ABS_X,
331329
-data->g_range, data->g_range, pdata->fuzz_x, 0);
332330
input_set_abs_params(input_dev, ABS_Y,

0 commit comments

Comments
 (0)