OSDN Git Service

mfd: stmpe: Add STMPE_IDX_SYS_CTRL/2 enum
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 10 Aug 2016 07:39:06 +0000 (09:39 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 10 Aug 2016 08:23:25 +0000 (09:23 +0100)
commit0f4be8cf637ea4637faba8a0e4bf2270287c6ba0
treefd3f170ae3a01ed96a60e5a16393ef8cffa9abeb
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
mfd: stmpe: Add STMPE_IDX_SYS_CTRL/2 enum

As STMPE1801/1601/24xx has a SYS_CTRL register and
STMPE1601/2403 has even a SYS_CTRL2 register, add
STMPE_IDX_SYS_CTRL/2 and update driver code accordingly

This update prepares the ground for not yet supported STMPE1600
which share similar REG_SYS_CTRL register.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/stmpe.c
drivers/mfd/stmpe.h
include/linux/mfd/stmpe.h