]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
firmware: arm_scmi: Constify ops pointers in scmi_handle
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 6 Sep 2020 23:04:51 +0000 (01:04 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 7 Sep 2020 11:43:27 +0000 (12:43 +0100)
These are never modified, so make them const to allow drivers to make
them const.

Link: https://lore.kernel.org/r/20200906230452.33410-3-rikard.falkeborn@gmail.com
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
include/linux/scmi_protocol.h

index 7e5dd7d1e22120e8b34ff08bc4475ec47869a727..05570afc7f74dea56d9252188657ff7f47b72ad3 100644 (file)
@@ -279,12 +279,12 @@ struct scmi_notify_ops {
 struct scmi_handle {
        struct device *dev;
        struct scmi_revision_info *version;
-       struct scmi_perf_ops *perf_ops;
-       struct scmi_clk_ops *clk_ops;
-       struct scmi_power_ops *power_ops;
-       struct scmi_sensor_ops *sensor_ops;
-       struct scmi_reset_ops *reset_ops;
-       struct scmi_notify_ops *notify_ops;
+       const struct scmi_perf_ops *perf_ops;
+       const struct scmi_clk_ops *clk_ops;
+       const struct scmi_power_ops *power_ops;
+       const struct scmi_sensor_ops *sensor_ops;
+       const struct scmi_reset_ops *reset_ops;
+       const struct scmi_notify_ops *notify_ops;
        /* for protocol internal use */
        void *perf_priv;
        void *clk_priv;