summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMark Brown2012-06-03 14:37:24 +0200
committerSamuel Ortiz2012-07-09 00:16:10 +0200
commit19d57ed5a308472a02e773f33c03ad4cb2ec6a9d (patch)
tree31b3ec5f0716703f194136eb8ff7097bd09571cd /include/linux/mfd
parentmfd: Rely on regmap cache in wm8350 interrupt controller (diff)
downloadkernel-qcow2-linux-19d57ed5a308472a02e773f33c03ad4cb2ec6a9d.tar.gz
kernel-qcow2-linux-19d57ed5a308472a02e773f33c03ad4cb2ec6a9d.tar.xz
kernel-qcow2-linux-19d57ed5a308472a02e773f33c03ad4cb2ec6a9d.zip
mfd: Remove custom wm8350 cache implementation
Since none of the users now reference the cache directly we can happily remove the custom cache code and rely on the regmap cache. For simplicity we don't bother with the register defaults tables but instead read the defaults from the device - regmap is capable of doing this, unlike our old cache infrastructure. This saves a lot of code and allows us to cache the device revision information too. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/wm8350/core.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/mfd/wm8350/core.h b/include/linux/mfd/wm8350/core.h
index cba9bc8f947b..509481d9cf19 100644
--- a/include/linux/mfd/wm8350/core.h
+++ b/include/linux/mfd/wm8350/core.h
@@ -587,24 +587,6 @@
#define WM8350_NUM_IRQ_REGS 7
extern const struct regmap_config wm8350_regmap;
-struct wm8350_reg_access {
- u16 readable; /* Mask of readable bits */
- u16 writable; /* Mask of writable bits */
- u16 vol; /* Mask of volatile bits */
-};
-extern const struct wm8350_reg_access wm8350_reg_io_map[];
-extern const u16 wm8350_mode0_defaults[];
-extern const u16 wm8350_mode1_defaults[];
-extern const u16 wm8350_mode2_defaults[];
-extern const u16 wm8350_mode3_defaults[];
-extern const u16 wm8351_mode0_defaults[];
-extern const u16 wm8351_mode1_defaults[];
-extern const u16 wm8351_mode2_defaults[];
-extern const u16 wm8351_mode3_defaults[];
-extern const u16 wm8352_mode0_defaults[];
-extern const u16 wm8352_mode1_defaults[];
-extern const u16 wm8352_mode2_defaults[];
-extern const u16 wm8352_mode3_defaults[];
struct wm8350;
@@ -618,7 +600,6 @@ struct wm8350 {
/* device IO */
struct regmap *regmap;
- u16 *reg_cache;
bool unlocked;
struct mutex auxadc_mutex;