projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f49c4f
)
Input: mt - cleanup open-coded __set_bit()
author
Michał Mirosław
<mirq-linux@rere.qmqm.pl>
Thu, 16 Jul 2020 00:30:36 +0000
(17:30 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 16 Jul 2020 00:31:46 +0000
(17:31 -0700)
Replace open-coded __set_bit() with the function.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link:
https://lore.kernel.org/r/cf1dda3a372896cb01033ce084a7deb9620df7aa.1594599118.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-mt.c
patch
|
blob
|
history
diff --git
a/drivers/input/input-mt.c
b/drivers/input/input-mt.c
index
a81e141
..
f699538
100644
(file)
--- a/
drivers/input/input-mt.c
+++ b/
drivers/input/input-mt.c
@@
-16,7
+16,7
@@
static void copy_abs(struct input_dev *dev, unsigned int dst, unsigned int src)
if (dev->absinfo && test_bit(src, dev->absbit)) {
dev->absinfo[dst] = dev->absinfo[src];
dev->absinfo[dst].fuzz = 0;
-
dev->absbit[BIT_WORD(dst)] |= BIT_MASK(ds
t);
+
__set_bit(dst, dev->absbi
t);
}
}