Skip to content

Commit

Permalink
Input: sentelic - minor code cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tai-hwa Liang authored and Dmitry Torokhov committed Mar 26, 2012
1 parent a4c8507 commit 7b85f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/sentelic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b85f73

Please sign in to comment.