summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorShen Lichuan <shenlichuan@vivo.com>2024-09-18 03:45:39 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-18 03:48:00 -0700
commit55bef83509f0cbe4cc54a583ac0313389dabee66 (patch)
tree61a96a1087894c745180afb29f892c71e7d869ea /drivers/input
parentc7c878ff329239e28d7ab9fae7f7f49f114b12ff (diff)
Input: Convert comma to semicolon
To ensure code clarity and prevent potential errors, it's advisable to employ the ';' as a statement separator, except when ',' are intentionally used for specific purposes. Signed-off-by: Shen Lichuan <shenlichuan@vivo.com> Link: https://lore.kernel.org/r/20240918032246.9147-1-shenlichuan@vivo.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 54c57b267b25..3c321671793f 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -2224,7 +2224,7 @@ static unsigned int input_estimate_events_per_packet(struct input_dev *dev)
mt_slots = dev->mt->num_slots;
} else if (test_bit(ABS_MT_TRACKING_ID, dev->absbit)) {
mt_slots = dev->absinfo[ABS_MT_TRACKING_ID].maximum -
- dev->absinfo[ABS_MT_TRACKING_ID].minimum + 1,
+ dev->absinfo[ABS_MT_TRACKING_ID].minimum + 1;
mt_slots = clamp(mt_slots, 2, 32);
} else if (test_bit(ABS_MT_POSITION_X, dev->absbit)) {
mt_slots = 2;