diff mbox series

pinctrl: qcom: Use devm_platform_ioremap_resource_byname

Message ID 202504031550143925VMOuiV6Gs3QgxNjRIOyf@zte.com.cn
State New
Headers show
Series pinctrl: qcom: Use devm_platform_ioremap_resource_byname | expand

Commit Message

shao.mingyin@zte.com.cn April 3, 2025, 7:50 a.m. UTC
From: Xie Ludan <xie.ludan@zte.com.cn>

Introduce devm_platform_ioremap_resource_byname() to simplify
resource retrieval and mapping.This new function consolidates
platform_get_resource_byname() and devm_ioremap_resource() into a single
call, improving code readability and reducing API call overhead.

Signed-off-by: Xie Ludan <xie.ludan@zte.com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
---
 drivers/pinctrl/qcom/pinctrl-msm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
index 13cdd6c0fbd7..264ac0e7152d 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
@@ -1548,7 +1548,7 @@  int msm_pinctrl_probe(struct platform_device *pdev,

 	if (soc_data->tiles) {
 		for (i = 0; i < soc_data->ntiles; i++) {
-			pctrl->regs[i] = devm_platform_ioremap_resource_byname(pdev, 
+			pctrl->regs[i] = devm_platform_ioremap_resource_byname(pdev,
 																   soc_data->tiles[i]);
 			if (IS_ERR(pctrl->regs[i]))
 				return PTR_ERR(pctrl->regs[i]);