]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfeb0e440ba72a89cbc01b893f350878c5e9fd273
treea010d1a1cef30903ebe2e06a5962ae995aa5fcf9
parentccc8c70ac31dab8a647541a6c5122504be2d03cd
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