]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ASoC: ssm2518: Drop .volatile_reg implementation
authorAxel Lin <axel.lin@ingics.com>
Tue, 20 Oct 2015 08:54:46 +0000 (16:54 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 20 Oct 2015 16:00:29 +0000 (17:00 +0100)
The implementation of ssm2518_register_volatile always returns false,
this behavior is the same as no .volatile_reg callback implementation
when cache_type != REGCACHE_NONE.

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/ssm2518.c

index ddb0203fc6495b520f4695be9e94e62a7ea56026..86b81a60ac52bb4750da5981d62a210815d515c4 100644 (file)
@@ -723,17 +723,11 @@ static struct snd_soc_codec_driver ssm2518_codec_driver = {
        .num_dapm_routes = ARRAY_SIZE(ssm2518_routes),
 };
 
-static bool ssm2518_register_volatile(struct device *dev, unsigned int reg)
-{
-       return false;
-}
-
 static const struct regmap_config ssm2518_regmap_config = {
        .val_bits = 8,
        .reg_bits = 8,
 
        .max_register = SSM2518_REG_DRC_9,
-       .volatile_reg = ssm2518_register_volatile,
 
        .cache_type = REGCACHE_RBTREE,
        .reg_defaults = ssm2518_reg_defaults,