From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: Henrik Rydberg <rydberg@bitmath.org>,
Dmitry Osipenko <digetx@gmail.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
James Chen <james.chen@emc.com.tw>,
Johnny Chuang <johnny.chuang@emc.com.tw>,
Scott Liu <scott.liu@emc.com.tw>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v6 5/5] input: mt: cleanup open-coded __set_bit()
Date: Mon, 13 Jul 2020 02:24:55 +0200 [thread overview]
Message-ID: <cf1dda3a372896cb01033ce084a7deb9620df7aa.1594599118.git.mirq-linux@rere.qmqm.pl> (raw)
In-Reply-To: <cover.1594599118.git.mirq-linux@rere.qmqm.pl>
Replace open-coded __set_bit() with the function.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
drivers/input/input-mt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c
index a81e14148407..f699538bdac4 100644
--- 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(dst);
+ __set_bit(dst, dev->absbit);
}
}
--
2.20.1
next prev parent reply other threads:[~2020-07-13 0:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-13 0:24 [PATCH v6 0/5] input: elants: Support Asus TF300T touchscreen Michał Mirosław
2020-07-13 0:24 ` [PATCH v6 1/5] input: elants: document some registers and values Michał Mirosław
2020-07-13 0:24 ` [PATCH v6 2/5] input: elants: support old touch report format Michał Mirosław
2020-07-13 0:24 ` [PATCH v6 3/5] input: elants: read touchscreen size for EKTF3624 Michał Mirosław
2020-07-13 0:24 ` [PATCH v6 4/5] input: elants: support 0x66 reply opcode for reporting touches Michał Mirosław
2020-07-13 0:24 ` Michał Mirosław [this message]
2020-07-16 0:30 ` [PATCH v6 5/5] input: mt: cleanup open-coded __set_bit() Dmitry Torokhov
2020-08-13 18:33 ` Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cf1dda3a372896cb01033ce084a7deb9620df7aa.1594599118.git.mirq-linux@rere.qmqm.pl \
--to=mirq-linux@rere.qmqm.pl \
--cc=digetx@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=james.chen@emc.com.tw \
--cc=johnny.chuang@emc.com.tw \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rydberg@bitmath.org \
--cc=scott.liu@emc.com.tw \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.