aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-31 22:03:42 -0400
committerMark Brown <broonie@kernel.org>2015-08-05 08:28:24 -0400
commitf611cdd8eb33ac6ca1196319b27b7f7f24ef98a9 (patch)
treeb7122a80af154932a8f1a0d2ed81a585eb5737ae /sound
parentcef6daa919c6912c4da629c3cee9c789f90583b1 (diff)
ASoC: wm8731: Drop wm8731_writeable function
When .max_register is set and .writeable_reg is not implement, registers between 0 and .max_register are writeable. This is the same as current implementation of wm8731_writeable(), so just drop implementation for .writeable_reg callback. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8731.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 628d50c40cc4..6c73d379d93f 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -79,11 +79,6 @@ static bool wm8731_volatile(struct device *dev, unsigned int reg)
79 return reg == WM8731_RESET; 79 return reg == WM8731_RESET;
80} 80}
81 81
82static bool wm8731_writeable(struct device *dev, unsigned int reg)
83{
84 return reg <= WM8731_RESET;
85}
86
87#define wm8731_reset(m) regmap_write(m, WM8731_RESET, 0) 82#define wm8731_reset(m) regmap_write(m, WM8731_RESET, 0)
88 83
89static const char *wm8731_input_select[] = {"Line In", "Mic"}; 84static const char *wm8731_input_select[] = {"Line In", "Mic"};
@@ -655,7 +650,6 @@ static const struct regmap_config wm8731_regmap = {
655 650
656 .max_register = WM8731_RESET, 651 .max_register = WM8731_RESET,
657 .volatile_reg = wm8731_volatile, 652 .volatile_reg = wm8731_volatile,
658 .writeable_reg = wm8731_writeable,
659 653
660 .cache_type = REGCACHE_RBTREE, 654 .cache_type = REGCACHE_RBTREE,
661 .reg_defaults = wm8731_reg_defaults, 655 .reg_defaults = wm8731_reg_defaults,