diff mbox series

[3/3] firmware: imx: pd: make driver look more generic

Message ID 20210421101432.2043310-3-aisheng.dong@nxp.com
State New
Headers show
Series [1/3] firmware: imx: pd: fix img-jpegdec pd names | expand

Commit Message

Aisheng Dong April 21, 2021, 10:14 a.m. UTC
The SCU protocal is platform independent, so make the driver
code as it is by dropping the soc prefix for structures.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
---
 drivers/firmware/imx/scu-pd.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c
index 446a4f9f0ec9..bdf88aed6dca 100644
--- a/drivers/firmware/imx/scu-pd.c
+++ b/drivers/firmware/imx/scu-pd.c
@@ -95,7 +95,7 @@  struct imx_sc_pd_soc {
 
 static int imx_con_rsrc;
 
-static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = {
+static const struct imx_sc_pd_range scu_pd_ranges[] = {
 	/* LSIO SS */
 	{ "pwm", IMX_SC_R_PWM_0, 8, true, 0 },
 	{ "gpio", IMX_SC_R_GPIO_0, 8, true, 0 },
@@ -266,9 +266,9 @@  static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = {
 	{ "board", IMX_SC_R_BOARD_R0, 8, true, 0},
 };
 
-static const struct imx_sc_pd_soc imx8qxp_scu_pd = {
-	.pd_ranges = imx8qxp_scu_pd_ranges,
-	.num_ranges = ARRAY_SIZE(imx8qxp_scu_pd_ranges),
+static const struct imx_sc_pd_soc scu_pd = {
+	.pd_ranges = scu_pd_ranges,
+	.num_ranges = ARRAY_SIZE(scu_pd_ranges),
 };
 
 static struct imx_sc_ipc *pm_ipc_handle;
@@ -463,8 +463,7 @@  static int imx_sc_pd_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx_sc_pd_match[] = {
-	{ .compatible = "fsl,imx8qxp-scu-pd", &imx8qxp_scu_pd},
-	{ .compatible = "fsl,scu-pd", &imx8qxp_scu_pd},
+	{ .compatible = "fsl,scu-pd", &scu_pd},
 	{ /* sentinel */ }
 };