mfd: ti_am335x_tscadc: Update logic in CTRL register for 5-wire TS
authorJeff Lance <j-lance1@ti.com>
Thu, 4 Sep 2014 17:01:57 +0000 (19:01 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:24:03 +0000 (08:24 +0100)
commitf0933a60d1902c918249d11fb6d9a5ffd581ef5b
treebc1c00cebd3567639cc62f0d6ec6d0e5e97b494e
parent92b8f3abb8c30c15fc79a79ddd1ffab135fc0360
mfd: ti_am335x_tscadc: Update logic in CTRL register for 5-wire TS

The logic in AFE_Pen_Ctrl bitmask in the CTRL register is different for five
wire versus four or eight wire touschscreens. This patch should fix this for
five-wire touch screens. There should be no change needed here for four and
eight wire tousch screens.

Signed-off-by: Jeff Lance <j-lance1@ti.com>
[bigeasy: keep the change mfd only]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ti_am335x_tscadc.c
include/linux/mfd/ti_am335x_tscadc.h