From: Weidong Wang Date: Fri, 20 Oct 2023 08:34:24 +0000 (+0800) Subject: ASoC: codecs: Modify max_register usage error X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f1c406866af5dacdd9601cfa3be4873ebd801b86;p=linux.git 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 Link: https://lore.kernel.org/r/20231020083426.302925-3-wangweidong.a@awinic.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/aw88261.c b/sound/soc/codecs/aw88261.c index e7683f70c2ef5..a78ceedd03344 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, };