mfd: tps65912: Move regmap config into core driver
authorArnd Bergmann <arnd@arndb.de>
Thu, 15 Sep 2016 11:35:30 +0000 (13:35 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 29 Nov 2016 08:21:21 +0000 (08:21 +0000)
commit054814b863b32a19a5094edb78a14c3c441f57dd
treefc101bc81ba8cec0d70fc0a170836c8619da105a
parentbb63f7d33d35b17faac72ea63e03c57396766eee
mfd: tps65912: Move regmap config into core driver

When building with extra warnings enabled, most files including
linux/mfd/tps65912.h warn about a static variable defined in the
header:

include/linux/mfd/tps65912.h:331:35: warning: 'tps65912_regmap_config' defined but not used [-Wunused-const-variable=]

We also duplicate the data structure between the i2c and spi front-end
drivers. Moving it into the driver code avoids the warning and
the duplication.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65912-core.c
include/linux/mfd/tps65912.h