ASoC: ad193x: Drop .volatile_reg implementation
authorAxel Lin <axel.lin@ingics.com>
Tue, 20 Oct 2015 08:56:11 +0000 (16:56 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 20 Oct 2015 15:59:29 +0000 (16:59 +0100)
adau193x_reg_volatile() always return false.
This seems pointless because current code uses REGCACHE_NONE cache_type
which is supposed to be volatile.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ad193x.c

index 76d7966bd72c6ae53f76f72a31613225b0e40e64..3a3f3f2343d75e7ee8b9b29abd3ee6887c1437f4 100644 (file)
@@ -418,14 +418,8 @@ static struct snd_soc_codec_driver soc_codec_dev_ad193x = {
        .num_dapm_routes = ARRAY_SIZE(audio_paths),
 };
 
-static bool adau193x_reg_volatile(struct device *dev, unsigned int reg)
-{
-       return false;
-}
-
 const struct regmap_config ad193x_regmap_config = {
        .max_register = AD193X_NUM_REGS - 1,
-       .volatile_reg = adau193x_reg_volatile,
 };
 EXPORT_SYMBOL_GPL(ad193x_regmap_config);