diff options
author | Anshul Garg <aksgarg1989@gmail.com> | 2015-06-25 22:33:12 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-06-25 23:44:36 +0200 |
commit | 3e2b03dad54bbcab5be948629a644d55ce7b5a2e (patch) | |
tree | d9f561ab35d2835dfab9af4f37360762f74310e0 /Documentation/rtc.txt | |
parent | Input: add a driver for wdt87xx touchscreen controller (diff) | |
download | linux-3e2b03dad54bbcab5be948629a644d55ce7b5a2e.tar.xz linux-3e2b03dad54bbcab5be948629a644d55ce7b5a2e.zip |
Input: use for_each_set_bit() where appropriate
Instead of iterating over all bits in a bitmap and test them individually
let's siwtch to for_each_set_bit() which is more compact and is also
faster.
Also use bitmap_weight() when counting number of set bits.
This also fixes INPUT_DO_TOGGLE() implementation as it should have used
*_CNT as the upper boundary, not *_MAX.
Signed-off-by: Anshul Garg <aksgarg1989@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/rtc.txt')
0 files changed, 0 insertions, 0 deletions