Skip to content

Commit

Permalink
ASoC: wm8731: Drop wm8731_writeable function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 5, 2015
1 parent cef6daa commit f611cdd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sound/soc/codecs/wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"};
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f611cdd

Please sign in to comment.