Patchwork [Precise,5/6] Input: sentelic - minor code cleanup

login
register
mail settings
Submitter Eric Miao
Date April 12, 2012, 1:58 p.m.
Message ID <1334239099-3502-6-git-send-email-eric.miao@canonical.com>
Download mbox | patch
Permalink /patch/152078/
State New
Headers show

Comments

Eric Miao - April 12, 2012, 1:58 p.m.
From: Tai-hwa Liang <avatar@sentelic.com>

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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: