提交 7b85f73d 编写于 作者: T Tai-hwa Liang 提交者: Dmitry Torokhov

Input: sentelic - minor code cleanup

Improve code readability by converting yet another magic number into a
pre-defined constant.
Signed-off-by: NTai-hwa Liang <avatar@sentelic.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 a4c85075
...@@ -738,7 +738,7 @@ static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse) ...@@ -738,7 +738,7 @@ static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse)
case FSP_PKT_TYPE_NORMAL_OPC: case FSP_PKT_TYPE_NORMAL_OPC:
/* on-pad click, filter it if necessary */ /* on-pad click, filter it if necessary */
if ((ad->flags & FSPDRV_FLAG_EN_OPC) != FSPDRV_FLAG_EN_OPC) if ((ad->flags & FSPDRV_FLAG_EN_OPC) != FSPDRV_FLAG_EN_OPC)
packet[0] &= ~BIT(0); packet[0] &= ~FSP_PB0_LBTN;
/* fall through */ /* fall through */
case FSP_PKT_TYPE_NORMAL: case FSP_PKT_TYPE_NORMAL:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部