Home
last modified time | relevance | path

Searched hist:bf3e8502 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/input/rmi4/
H A Drmi_f30.cbf3e8502 Wed Feb 08 14:02:07 CST 2017 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: synaptics-rmi4 - clean up F30 implementation

This patch does several cleanup changes to F30 code

- switch to using BIT() macro
- use DIV_ROUND_UP() where appropriate
- factor out code setting up and reporting buttons
- use single loop when reporting buttons: arithmetic is cheap compared to
conditionals and associated branch misprediction.

Tested-By: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
bf3e8502 Wed Feb 08 14:02:07 CST 2017 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: synaptics-rmi4 - clean up F30 implementation

This patch does several cleanup changes to F30 code

- switch to using BIT() macro
- use DIV_ROUND_UP() where appropriate
- factor out code setting up and reporting buttons
- use single loop when reporting buttons: arithmetic is cheap compared to
conditionals and associated branch misprediction.

Tested-By: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>