summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/arm_scmi/power.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-09-07 01:04:52 +0200
committerSudeep Holla <sudeep.holla@arm.com>2020-09-07 13:43:27 +0200
commit3de7b83017bd93d521dc29f475f4c8fc5d61e518 (patch)
tree4cd848ea7797781f486af633124133e0c35e745b /drivers/firmware/arm_scmi/power.c
parentfirmware: arm_scmi: Constify ops pointers in scmi_handle (diff)
downloadlinux-3de7b83017bd93d521dc29f475f4c8fc5d61e518.tar.xz
linux-3de7b83017bd93d521dc29f475f4c8fc5d61e518.zip
firmware: arm_scmi: Constify static scmi-ops
These are never modified, so make them const to allow the compiler to put them in read-only memory. Link: https://lore.kernel.org/r/20200906230452.33410-4-rikard.falkeborn@gmail.com Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/power.c')
-rw-r--r--drivers/firmware/arm_scmi/power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/power.c b/drivers/firmware/arm_scmi/power.c
index 46f213644c49..32bcf5821ea9 100644
--- a/drivers/firmware/arm_scmi/power.c
+++ b/drivers/firmware/arm_scmi/power.c
@@ -184,7 +184,7 @@ static char *scmi_power_name_get(const struct scmi_handle *handle, u32 domain)
return dom->name;
}
-static struct scmi_power_ops power_ops = {
+static const struct scmi_power_ops power_ops = {
.num_domains_get = scmi_power_num_domains_get,
.name_get = scmi_power_name_get,
.state_set = scmi_power_state_set,