Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] thermal/drivers/thermal_mmio: Drop of_match_ptr()
@ 2022-08-04 11:59 Jean Delvare
  2022-08-31 18:51 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2022-08-04 11:59 UTC (permalink / raw)
  To: LKML, linux-pm; +Cc: Talel Shenhar, Rafael J. Wysocki, Daniel Lezcano

From: Jean Delvare <jdelvare@suse.de>
Subject: thermal/drivers/thermal_mmio: Drop of_match_ptr()

Now that the driver depends on OF, we know what of_match_ptr() will
always resolve to, so we might as well save cpp some work.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Talel Shenhar <talel@amazon.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
---
This could have been folded into my previous patch, sorry for missing
it.

 drivers/thermal/thermal_mmio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-5.18.orig/drivers/thermal/thermal_mmio.c	2022-05-22 21:52:31.000000000 +0200
+++ linux-5.18/drivers/thermal/thermal_mmio.c	2022-08-04 13:50:46.426178245 +0200
@@ -107,7 +107,7 @@ static struct platform_driver thermal_mm
 	.probe = thermal_mmio_probe,
 	.driver = {
 		.name = "thermal-mmio",
-		.of_match_table = of_match_ptr(thermal_mmio_id_table),
+		.of_match_table = thermal_mmio_id_table,
 	},
 };
 


-- 
Jean Delvare
SUSE L3 Support

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

* Re: [PATCH] thermal/drivers/thermal_mmio: Drop of_match_ptr()
  2022-08-04 11:59 [PATCH] thermal/drivers/thermal_mmio: Drop of_match_ptr() Jean Delvare
@ 2022-08-31 18:51 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2022-08-31 18:51 UTC (permalink / raw)
  To: Jean Delvare
  Cc: LKML, Linux PM, Talel Shenhar, Rafael J. Wysocki, Daniel Lezcano

On Thu, Aug 4, 2022 at 1:59 PM Jean Delvare <jdelvare@suse.de> wrote:
>
> From: Jean Delvare <jdelvare@suse.de>
> Subject: thermal/drivers/thermal_mmio: Drop of_match_ptr()
>
> Now that the driver depends on OF, we know what of_match_ptr() will
> always resolve to, so we might as well save cpp some work.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: Talel Shenhar <talel@amazon.com>
> Cc: "Rafael J. Wysocki" <rafael@kernel.org>
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> ---
> This could have been folded into my previous patch, sorry for missing
> it.
>
>  drivers/thermal/thermal_mmio.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-5.18.orig/drivers/thermal/thermal_mmio.c      2022-05-22 21:52:31.000000000 +0200
> +++ linux-5.18/drivers/thermal/thermal_mmio.c   2022-08-04 13:50:46.426178245 +0200
> @@ -107,7 +107,7 @@ static struct platform_driver thermal_mm
>         .probe = thermal_mmio_probe,
>         .driver = {
>                 .name = "thermal-mmio",
> -               .of_match_table = of_match_ptr(thermal_mmio_id_table),
> +               .of_match_table = thermal_mmio_id_table,
>         },
>  };
>
>
>
> --

Applied as 6.1 material, thanks!

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

end of thread, other threads:[~2022-08-31 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-04 11:59 [PATCH] thermal/drivers/thermal_mmio: Drop of_match_ptr() Jean Delvare
2022-08-31 18:51 ` Rafael J. Wysocki

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