aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-03 08:37:24 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-08 18:16:10 -0400
commit19d57ed5a308472a02e773f33c03ad4cb2ec6a9d (patch)
tree31b3ec5f0716703f194136eb8ff7097bd09571cd /include/linux
parent7fdb5d32614f7784fc7c2b8e883eb4da26358a94 (diff)
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')
-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 @@
587#define WM8350_NUM_IRQ_REGS 7 587#define WM8350_NUM_IRQ_REGS 7
588 588
589extern const struct regmap_config wm8350_regmap; 589extern const struct regmap_config wm8350_regmap;
590struct wm8350_reg_access {
591 u16 readable; /* Mask of readable bits */
592 u16 writable; /* Mask of writable bits */
593 u16 vol; /* Mask of volatile bits */
594};
595extern const struct wm8350_reg_access wm8350_reg_io_map[];
596extern const u16 wm8350_mode0_defaults[];
597extern const u16 wm8350_mode1_defaults[];
598extern const u16 wm8350_mode2_defaults[];
599extern const u16 wm8350_mode3_defaults[];
600extern const u16 wm8351_mode0_defaults[];
601extern const u16 wm8351_mode1_defaults[];
602extern const u16 wm8351_mode2_defaults[];
603extern const u16 wm8351_mode3_defaults[];
604extern const u16 wm8352_mode0_defaults[];
605extern const u16 wm8352_mode1_defaults[];
606extern const u16 wm8352_mode2_defaults[];
607extern const u16 wm8352_mode3_defaults[];
608 590
609struct wm8350; 591struct wm8350;
610 592
@@ -618,7 +600,6 @@ struct wm8350 {
618 600
619 /* device IO */ 601 /* device IO */
620 struct regmap *regmap; 602 struct regmap *regmap;
621 u16 *reg_cache;
622 bool unlocked; 603 bool unlocked;
623 604
624 struct mutex auxadc_mutex; 605 struct mutex auxadc_mutex;