Input: imx6ul_tsc - add mask when set REG_ADC_CFG
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 30 Nov 2016 17:02:06 +0000 (09:02 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 1 Dec 2016 01:44:28 +0000 (17:44 -0800)
commit70f5a294ad2eec3f896dafb83075cb8f04d65e92
treea010d1a1cef30903ebe2e06a5962ae995aa5fcf9
parent6473bbfd7e85a9f834ed668b4daa31638c73ff53
Input: imx6ul_tsc - add mask when set REG_ADC_CFG

Add mask of each function bits of REG_ADC_CFG, and clear these
function bits first, otherwise use '|=' operation may get the
wrong setting which depends on the original value of REG_ADC_CFG.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Guy Shapiro <guy.shapiro@mobi-wize.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/imx6ul_tsc.c