[PATCH 11/11] media: amlogic: vdec: give the regmaps their own names

From: christian . koever-draxl

Date: Sun Oct 25 2026 - 15:31:56 EST


From: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>

The DOS and DMC regmaps are both registered on the decoder device
without a name, so debugfs refuses the second one:

debugfs: 'fe320000.video-codec' already exists in 'regmap'

Name them after the register blocks they cover.

Signed-off-by: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>
---
drivers/media/platform/amlogic/vdec/aml_vdec_hw.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/media/platform/amlogic/vdec/aml_vdec_hw.c b/drivers/media/platform/amlogic/vdec/aml_vdec_hw.c
index 935018ea96c6..50b867755771 100644
--- a/drivers/media/platform/amlogic/vdec/aml_vdec_hw.c
+++ b/drivers/media/platform/amlogic/vdec/aml_vdec_hw.c
@@ -555,6 +555,7 @@ struct aml_vdec_hw *vdec_get_hw(void *priv)
}

static const struct regmap_config dos_regmap_conf = {
+ .name = "dos",
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
@@ -562,6 +563,7 @@ static const struct regmap_config dos_regmap_conf = {
};

static const struct regmap_config dmc_regmap_conf = {
+ .name = "dmc",
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.56.0