projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef6daa
)
ASoC: wm8731: Drop wm8731_writeable function
author
Axel Lin
<
[email protected]
>
Sat, 1 Aug 2015 02:03:42 +0000
(10:03 +0800)
committer
Mark Brown
<
[email protected]
>
Wed, 5 Aug 2015 12:28:24 +0000
(13:28 +0100)
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 <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8731.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8731.c
b/sound/soc/codecs/wm8731.c
index 628d50c40cc4d5a48978edf5b259e9f7278a61d3..6c73d379d93f786e9fa73aca8d37c72b0102f051 100644
(file)
--- 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)
return reg == WM8731_RESET;
}
-static bool wm8731_writeable(struct device *dev, unsigned int reg)
-{
- return reg <= WM8731_RESET;
-}
-
#define wm8731_reset(m) regmap_write(m, WM8731_RESET, 0)
static const char *wm8731_input_select[] = {"Line In", "Mic"};
@@
-655,7
+650,6
@@
static const struct regmap_config wm8731_regmap = {
.max_register = WM8731_RESET,
.volatile_reg = wm8731_volatile,
- .writeable_reg = wm8731_writeable,
.cache_type = REGCACHE_RBTREE,
.reg_defaults = wm8731_reg_defaults,