Linux Power Management development
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: LKML <linux-kernel@vger.kernel.org>, linux-pm@vger.kernel.org
Cc: Talel Shenhar <talel@amazon.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: [PATCH] thermal/drivers/thermal_mmio: Drop of_match_ptr()
Date: Thu, 4 Aug 2022 13:59:38 +0200	[thread overview]
Message-ID: <20220804135938.7f69f5d9@endymion.delvare> (raw)

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

             reply	other threads:[~2022-08-04 11:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-04 11:59 Jean Delvare [this message]
2022-08-31 18:51 ` [PATCH] thermal/drivers/thermal_mmio: Drop of_match_ptr() Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220804135938.7f69f5d9@endymion.delvare \
    --to=jdelvare@suse.de \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=talel@amazon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox