From 89f57d3167c5dfee62f3a0e4e29d3e02ae65b3c8 Mon Sep 17 00:00:00 2001 From: Tai-hwa Liang Date: Sun, 25 Mar 2012 17:17:00 -0700 Subject: [PATCH] Input: sentelic - minor code cleanup BugLink: http://bugs.launchpad.net/bugs/969334 Improve code readability by converting yet another magic number into a pre-defined constant. Signed-off-by: Tai-hwa Liang Signed-off-by: Dmitry Torokhov (cherry picked from commit 7b85f73d0461188aa397d428e6c53419ebfd86b4) Signed-off-by: Eric Miao Acked-by: Leann Ogasawara Signed-off-by: Tim Gardner --- drivers/input/mouse/sentelic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/sentelic.c b/drivers/input/mouse/sentelic.c index 31b2a03..63b55b4 100644 --- a/drivers/input/mouse/sentelic.c +++ b/drivers/input/mouse/sentelic.c @@ -717,7 +717,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: -- 1.7.10.4