mfd: Separate out STMPE controller and interface specific code
authorViresh Kumar <viresh.kumar@st.com>
Thu, 17 Nov 2011 05:32:20 +0000 (11:02 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jan 2012 23:37:42 +0000 (00:37 +0100)
commit1a6e4b7415339e3b11a87cff0d701b8a2e55f062
treefbd5151ac34bf908826f4bbf8b298404660a8de1
parent71e58782d2e054798f91473f5452ffe65e2a5ff8
mfd: Separate out STMPE controller and interface specific code

Few STMPE controller can have register interface over SPI or I2C. Current
implementation only supports I2C and all code is present in a single file
stmpe.c. It would be better to separate out I2C interface specific code from
controller specific code. Later SPI specific code can be added in a separate
file.

This patch separates out I2C and controller specific code into separate files,
making stmpe.c independent of I2C.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/stmpe-i2c.c [new file with mode: 0644]
drivers/mfd/stmpe.c
drivers/mfd/stmpe.h
include/linux/mfd/stmpe.h