summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/aw88261.c
diff options
context:
space:
mode:
authorWeidong Wang <wangweidong.a@awinic.com>2023-10-20 11:34:24 +0300
committerMark Brown <broonie@kernel.org>2023-10-23 15:29:51 +0300
commitf1c406866af5dacdd9601cfa3be4873ebd801b86 (patch)
tree9481d4356c71b17cf8302c33387e3b3e71e66056 /sound/soc/codecs/aw88261.c
parent45f1b12e0366a750d65e92307685964488a3b6f4 (diff)
downloadlinux-f1c406866af5dacdd9601cfa3be4873ebd801b86.tar.xz
ASoC: codecs: Modify max_register usage error
Modify the value of max_register, otherwirse the AW88261_EFRL1_REG register will not be accessible. Signed-off-by: Weidong Wang <wangweidong.a@awinic.com> Link: https://lore.kernel.org/r/20231020083426.302925-3-wangweidong.a@awinic.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/aw88261.c')
-rw-r--r--sound/soc/codecs/aw88261.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/aw88261.c b/sound/soc/codecs/aw88261.c
index e7683f70c2ef..a78ceedd0334 100644
--- a/sound/soc/codecs/aw88261.c
+++ b/sound/soc/codecs/aw88261.c
@@ -19,7 +19,7 @@
static const struct regmap_config aw88261_remap_config = {
.val_bits = 16,
.reg_bits = 8,
- .max_register = AW88261_REG_MAX - 1,
+ .max_register = AW88261_REG_MAX,
.reg_format_endian = REGMAP_ENDIAN_LITTLE,
.val_format_endian = REGMAP_ENDIAN_BIG,
};