diff options
author | Weidong Wang <[email protected]> | 2023-10-20 16:34:24 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-10-23 13:29:51 +0100 |
commit | f1c406866af5dacdd9601cfa3be4873ebd801b86 (patch) | |
tree | 9481d4356c71b17cf8302c33387e3b3e71e66056 | |
parent | 45f1b12e0366a750d65e92307685964488a3b6f4 (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/codecs/aw88261.c | 2 |
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, }; |