mfd: stmpe: Fix bit clearing on STMPE1600
authorHugues Fruchet <hugues.fruchet@st.com>
Fri, 31 Mar 2017 08:12:39 +0000 (10:12 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:07 +0000 (09:25 +0100)
commitb97eef5d77b53662b06603c1b18e21968029c925
treea5594100f4e67002cb1d688571212b2034344f61
parentb4ccc4d2e82f7c7f8304f44544bdefcd16234582
mfd: stmpe: Fix bit clearing on STMPE1600

GPIO bits clearing on pins assigned to STMPE1600
had no effects due to missing "clear registers"
settings within stmpe1600_regs[].
STMPE1600 does not have dedicated "clear registers",
but single "set/clear registers", hence stmpe1600_regs[]
"clear registers" (STMPE_IDX_GPCR_XXX) must be set to
same value as "set registers" (STMPE_IDX_GPSR_XXX), ie
STMPE1600_REG_GPSR_XXX.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/stmpe.c