Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: ssm2518: Drop .volatile_reg implementation

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>

authored by

Axel Lin and committed by
Mark Brown
ce7b8dbd 6ff33f39

-6
-6
sound/soc/codecs/ssm2518.c
··· 723 723 .num_dapm_routes = ARRAY_SIZE(ssm2518_routes), 724 724 }; 725 725 726 - static bool ssm2518_register_volatile(struct device *dev, unsigned int reg) 727 - { 728 - return false; 729 - } 730 - 731 726 static const struct regmap_config ssm2518_regmap_config = { 732 727 .val_bits = 8, 733 728 .reg_bits = 8, 734 729 735 730 .max_register = SSM2518_REG_DRC_9, 736 - .volatile_reg = ssm2518_register_volatile, 737 731 738 732 .cache_type = REGCACHE_RBTREE, 739 733 .reg_defaults = ssm2518_reg_defaults,