Skip to contentSkip to conversation

power: sequencing: qcom-wcn: use device_get_match_data()

PATCH Applied Bartosz Golaszewski 3 participants 3 messages Nov 25, 2025 – Jan 7

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: sequencing: qcom-wcn: use device_get_match_data()

From: Bartosz Golaszewski <[email protected]>

Use the generic fwnode interface for retrieving device match data instead of the OF-specific one.

---
 drivers/power/sequencing/pwrseq-qcom-wcn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/power/sequencing/pwrseq-qcom-wcn.c +2 -1
index 663d9a5370653..823f68ffebd1a 100644
@@ -12,6 +12,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 #include <linux/regulator/consumer.h>
 #include <linux/pwrseq/provider.h>
 #include <linux/string.h>
@@ -373,7 +374,7 @@ static int pwrseq_qcom_wcn_probe(struct platform_device *pdev)
 
 	ctx->of_node = dev->of_node;
 
-	ctx->pdata = of_device_get_match_data(dev);
+	ctx->pdata = device_get_match_data(dev);
 	if (!ctx->pdata)
 		return dev_err_probe(dev, -ENODEV,
 				     "Failed to obtain platform data\n");
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Use the generic fwnode interface for retrieving device match data instead of the OF-specific one.

---
  drivers/power/sequencing/pwrseq-qcom-wcn.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/power/sequencing/pwrseq-qcom-wcn.c +1 -0
index 663d9a5370653..823f68ffebd1a 100644
@@ -12,6 +12,7 @@
  #include <linux/module.h>
  #include <linux/of.h>
  #include <linux/platform_device.h>
+#include <linux/property.h>
  #include <linux/regulator/consumer.h>
  #include <linux/pwrseq/provider.h>
  #include <linux/string.h>

drivers/power/sequencing/pwrseq-qcom-wcn.c static int pwrseq_qcom_wcn_probe(struct platform_device *pdev) · line 380

Quoted 8 lines
drivers/power/sequencing/pwrseq-qcom-wcn.c +1 -1
@@ -373,7 +374,7 @@ static int pwrseq_qcom_wcn_probe(struct platform_device *pdev)
 
  	ctx->of_node = dev->of_node;
 
-	ctx->pdata = of_device_get_match_data(dev);
+	ctx->pdata = device_get_match_data(dev);
  	if (!ctx->pdata)
  		return dev_err_probe(dev, -ENODEV,
  				     "Failed to obtain platform data\n");
#2 lore raw
In reply to Bartosz Golaszewski
Quoted 4 lines · Bartosz Golaszewski

Use the generic fwnode interface for retrieving device match data instead of the OF-specific one.

Applied, thanks!

[1/1] power: sequencing: qcom-wcn: use device_get_match_data()

      commit: b1857911d845136cdf627501070dd1b2dc7d0bbe

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>