[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20251114104250.2080030-1-ziniu.wang_1@nxp.com>
Date: Fri, 14 Nov 2025 18:42:50 +0800
From: ziniu.wang_1@....com
To: laurent.pinchart@...asonboard.com,
ukleinek@...nel.org,
nuno.sa@...log.com,
lee@...nel.org
Cc: linux-gpio@...r.kernel.org,
linux-pwm@...r.kernel.org,
linux-kernel@...r.kernel.org,
imx@...ts.linux.dev
Subject: [PATCH v2] pwm: adp5585: correct mismatched pwm chip info
From: Luke Wang <ziniu.wang_1@....com>
The register addresses of ADP5585 and ADP5589 are swapped.
Fixes: 75024f97e82e ("pwm: adp5585: add support for adp5589")
Signed-off-by: Luke Wang <ziniu.wang_1@....com>
Tested-by: Liu Ying <victor.liu@....com>
Acked-by: Nuno Sá <nuno.sa@...log.com>
---
v2: amend commit message
---
drivers/pwm/pwm-adp5585.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pwm/pwm-adp5585.c b/drivers/pwm/pwm-adp5585.c
index dc2860979e24..806f8d79b0d7 100644
--- a/drivers/pwm/pwm-adp5585.c
+++ b/drivers/pwm/pwm-adp5585.c
@@ -190,13 +190,13 @@ static int adp5585_pwm_probe(struct platform_device *pdev)
return 0;
}
-static const struct adp5585_pwm_chip adp5589_pwm_chip_info = {
+static const struct adp5585_pwm_chip adp5585_pwm_chip_info = {
.pwm_cfg = ADP5585_PWM_CFG,
.pwm_offt_low = ADP5585_PWM_OFFT_LOW,
.pwm_ont_low = ADP5585_PWM_ONT_LOW,
};
-static const struct adp5585_pwm_chip adp5585_pwm_chip_info = {
+static const struct adp5585_pwm_chip adp5589_pwm_chip_info = {
.pwm_cfg = ADP5589_PWM_CFG,
.pwm_offt_low = ADP5589_PWM_OFFT_LOW,
.pwm_ont_low = ADP5589_PWM_ONT_LOW,
--
2.34.1
Powered by blists - more mailing lists