[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231024071419.85647-3-wangweidong.a@awinic.com>
Date: Tue, 24 Oct 2023 15:14:17 +0800
From: wangweidong.a@...nic.com
To: broonie@...nel.org
Cc: 13916275206@....com, ajye_huang@...pal.corp-partner.google.com,
alsa-devel@...a-project.org, arnd@...db.de,
ckeepax@...nsource.cirrus.com, colin.i.king@...il.com,
conor+dt@...nel.org, dan.carpenter@...aro.org,
devicetree@...r.kernel.org, harshit.m.mogalapalli@...cle.com,
herve.codina@...tlin.com, krzysztof.kozlowski+dt@...aro.org,
lgirdwood@...il.com, linus.walleij@...aro.org,
linux-kernel@...r.kernel.org, liweilei@...nic.com, perex@...ex.cz,
rf@...nsource.cirrus.com, robh+dt@...nel.org, ryans.lee@...log.com,
sebastian.reichel@...labora.com, shumingf@...ltek.com,
tiwai@...e.com, trix@...hat.com, wangweidong.a@...nic.com,
yijiangtao@...nic.com
Subject: [PATCH V2 2/4] ASoC: codecs: Modify max_register usage error
From: Weidong Wang <wangweidong.a@...nic.com>
Modify the value of max_register, otherwirse
the AW88261_EFRL1_REG register will not be
accessible.
Signed-off-by: Weidong Wang <wangweidong.a@...nic.com>
---
sound/soc/codecs/aw88261.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/aw88261.c b/sound/soc/codecs/aw88261.c
index a697b5006b45..0db7a0a3c179 100644
--- a/sound/soc/codecs/aw88261.c
+++ b/sound/soc/codecs/aw88261.c
@@ -20,7 +20,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,
};
--
2.41.0
Powered by blists - more mailing lists