projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c8507
)
Input: sentelic - minor code cleanup
author
Tai-hwa Liang
<avatar@sentelic.com>
Mon, 26 Mar 2012 00:17:00 +0000
(17:17 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 26 Mar 2012 00:18:15 +0000
(17:18 -0700)
Improve code readability by converting yet another magic number into a
pre-defined constant.
Signed-off-by: Tai-hwa Liang <avatar@sentelic.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/sentelic.c
patch
|
blob
|
history
diff --git
a/drivers/input/mouse/sentelic.c
b/drivers/input/mouse/sentelic.c
index 5ea5c689d26225860a2cfe50017e3abe8c0d6b29..d6bc5a0b28653efbd2955f7192c3b5b3da4bb06f 100644
(file)
--- a/
drivers/input/mouse/sentelic.c
+++ b/
drivers/input/mouse/sentelic.c
@@
-738,7
+738,7
@@
static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse)
case FSP_PKT_TYPE_NORMAL_OPC:
/* on-pad click, filter it if necessary */
if ((ad->flags & FSPDRV_FLAG_EN_OPC) != FSPDRV_FLAG_EN_OPC)
- packet[0] &= ~
BIT(0)
;
+ packet[0] &= ~
FSP_PB0_LBTN
;
/* fall through */
case FSP_PKT_TYPE_NORMAL: