[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230306144522.15699-1-quic_mdalam@quicinc.com>
Date: Mon, 6 Mar 2023 20:15:22 +0530
From: Md Sadre Alam <quic_mdalam@...cinc.com>
To: loic.poulain@...aro.org, rfoss@...nel.org,
linux-i2c@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: quic_sjaganat@...cinc.com, quic_srichara@...cinc.com,
quic_varada@...cinc.com, quic_mdalam@...cinc.com
Subject: [PATCH 3/5] i2c: qcom-cci:Use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Md Sadre Alam <quic_mdalam@...cinc.com>
---
drivers/i2c/busses/i2c-qcom-cci.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c
index 01358472680c..ed70bc1e4926 100644
--- a/drivers/i2c/busses/i2c-qcom-cci.c
+++ b/drivers/i2c/busses/i2c-qcom-cci.c
@@ -581,8 +581,7 @@ static int cci_probe(struct platform_device *pdev)
/* Memory */
- r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- cci->base = devm_ioremap_resource(dev, r);
+ cci->base = devm_platform_get_and_ioremap_resource(pdev, 0, &r);
if (IS_ERR(cci->base))
return PTR_ERR(cci->base);
--
2.17.1
Powered by blists - more mailing lists