We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454b376 commit f2b1e1cCopy full SHA for f2b1e1c
sound/soc/codecs/adau7118-i2c.c
@@ -32,13 +32,20 @@ static const struct reg_default adau7118_reg_defaults[] = {
32
{ ADAU7118_REG_RESET, 0x00 },
33
};
34
35
+static bool adau7118_volatile(struct device *dev, unsigned int reg)
36
+{
37
+ return (reg == ADAU7118_REG_RESET);
38
+}
39
+
40
41
static const struct regmap_config adau7118_regmap_config = {
42
.reg_bits = 8,
43
.val_bits = 8,
44
.reg_defaults = adau7118_reg_defaults,
45
.num_reg_defaults = ARRAY_SIZE(adau7118_reg_defaults),
46
.cache_type = REGCACHE_RBTREE,
47
.max_register = ADAU7118_REG_RESET,
48
+ .volatile_reg = adau7118_volatile,
49
50
51
static int adau7118_probe_i2c(struct i2c_client *i2c,
0 commit comments