mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] power: sequencing: qcom-wcn: use device_get_match_data()
@ 2025-11-25 13:47 Bartosz Golaszewski
  2025-11-25 13:56 ` Neil Armstrong
  2026-01-07  8:27 ` Bartosz Golaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2025-11-25 13:47 UTC (permalink / raw)
  To: linux-pm, linux-kernel, linux-arm-msm; +Cc: Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/power/sequencing/pwrseq-qcom-wcn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/power/sequencing/pwrseq-qcom-wcn.c b/drivers/power/sequencing/pwrseq-qcom-wcn.c
index 663d9a5370653..823f68ffebd1a 100644
--- a/drivers/power/sequencing/pwrseq-qcom-wcn.c
+++ b/drivers/power/sequencing/pwrseq-qcom-wcn.c
@@ -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");
-- 
2.51.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] power: sequencing: qcom-wcn: use device_get_match_data()
  2025-11-25 13:47 [PATCH] power: sequencing: qcom-wcn: use device_get_match_data() Bartosz Golaszewski
@ 2025-11-25 13:56 ` Neil Armstrong
  2026-01-07  8:27 ` Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2025-11-25 13:56 UTC (permalink / raw)
  To: Bartosz Golaszewski, linux-pm, linux-kernel, linux-arm-msm
  Cc: Bartosz Golaszewski

On 11/25/25 14:47, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> Use the generic fwnode interface for retrieving device match data
> instead of the OF-specific one.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>   drivers/power/sequencing/pwrseq-qcom-wcn.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/power/sequencing/pwrseq-qcom-wcn.c b/drivers/power/sequencing/pwrseq-qcom-wcn.c
> index 663d9a5370653..823f68ffebd1a 100644
> --- a/drivers/power/sequencing/pwrseq-qcom-wcn.c
> +++ b/drivers/power/sequencing/pwrseq-qcom-wcn.c
> @@ -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");

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] power: sequencing: qcom-wcn: use device_get_match_data()
  2025-11-25 13:47 [PATCH] power: sequencing: qcom-wcn: use device_get_match_data() Bartosz Golaszewski
  2025-11-25 13:56 ` Neil Armstrong
@ 2026-01-07  8:27 ` Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2026-01-07  8:27 UTC (permalink / raw)
  To: linux-pm, linux-kernel, linux-arm-msm, Bartosz Golaszewski
  Cc: Bartosz Golaszewski, Bartosz Golaszewski


On Tue, 25 Nov 2025 14:47:00 +0100, Bartosz Golaszewski wrote:
> 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,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-07  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-25 13:47 [PATCH] power: sequencing: qcom-wcn: use device_get_match_data() Bartosz Golaszewski
2025-11-25 13:56 ` Neil Armstrong
2026-01-07  8:27 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®