diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-09-07 01:04:52 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2020-09-07 13:43:27 +0200 |
commit | 3de7b83017bd93d521dc29f475f4c8fc5d61e518 (patch) | |
tree | 4cd848ea7797781f486af633124133e0c35e745b /drivers/firmware/arm_scmi/common.h | |
parent | firmware: arm_scmi: Constify ops pointers in scmi_handle (diff) | |
download | linux-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/common.h')
-rw-r--r-- | drivers/firmware/arm_scmi/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/common.h b/drivers/firmware/arm_scmi/common.h index c113e578cc6c..233700a42bff 100644 --- a/drivers/firmware/arm_scmi/common.h +++ b/drivers/firmware/arm_scmi/common.h @@ -210,7 +210,7 @@ struct scmi_transport_ops { * @max_msg_size: Maximum size of data per message that can be handled. */ struct scmi_desc { - struct scmi_transport_ops *ops; + const struct scmi_transport_ops *ops; int max_rx_timeout_ms; int max_msg; int max_msg_size; |