All of lore.kernel.org
 help / color / mirror / Atom feed
From: "thermal-bot for Rikard Falkeborn" <tip-bot2@linutronix.de>
To: linux-pm@vger.kernel.org
Cc: Rikard Falkeborn <rikard.falkeborn@gmail.com>,
	Talel Shenhar <talel@amazon.com>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	rui.zhang@intel.com, amitk@kernel.org
Subject: [thermal: thermal/next] thermal/drivers/thermal_mmio: Constify static struct thermal_mmio_ops
Date: Mon, 18 Oct 2021 11:46:04 -0000	[thread overview]
Message-ID: <163455756445.25758.15774779720456234515.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20210920203849.32136-1-rikard.falkeborn@gmail.com>

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     69c560d2eb3cff7ebe876cd224a3dc05852990b5
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//69c560d2eb3cff7ebe876cd224a3dc05852990b5
Author:        Rikard Falkeborn <rikard.falkeborn@gmail.com>
AuthorDate:    Mon, 20 Sep 2021 22:38:49 +02:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Thu, 07 Oct 2021 15:18:31 +02:00

thermal/drivers/thermal_mmio: Constify static struct thermal_mmio_ops

The only usage of thermal_mmio_ops is to pass its address to
devm_thermal_zone_of_sensor_register(), which has a pointer to const
struct thermal_zone_of_device_ops as argument. Make it const to allow
the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Talel Shenhar <talel@amazon.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210920203849.32136-1-rikard.falkeborn@gmail.com
---
 drivers/thermal/thermal_mmio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/thermal_mmio.c b/drivers/thermal/thermal_mmio.c
index ded1dd0..360b0df 100644
--- a/drivers/thermal/thermal_mmio.c
+++ b/drivers/thermal/thermal_mmio.c
@@ -34,7 +34,7 @@ static int thermal_mmio_get_temperature(void *private, int *temp)
 	return 0;
 }
 
-static struct thermal_zone_of_device_ops thermal_mmio_ops = {
+static const struct thermal_zone_of_device_ops thermal_mmio_ops = {
 	.get_temp = thermal_mmio_get_temperature,
 };
 

      parent reply	other threads:[~2021-10-18 11:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20 20:38 [PATCH] thermal: thermal_mmio: Constify static struct thermal_mmio_ops Rikard Falkeborn
2021-09-22 11:01 ` Shenhar, Talel
2021-10-05 14:36 ` [PATCH] " Rafael J. Wysocki
2021-10-05 16:51   ` Daniel Lezcano
2021-10-18 11:46 ` thermal-bot for Rikard Falkeborn [this message]

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=163455756445.25758.15774779720456234515.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=amitk@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rikard.falkeborn@gmail.com \
    --cc=rui.zhang@intel.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.