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>
This commit is contained in:
committed by
Sudeep Holla
parent
82894c1d39
commit
3de7b83017
@@ -1421,7 +1421,7 @@ static void scmi_protocols_late_init(struct work_struct *work)
|
||||
* notify_ops are attached to the handle so that can be accessed
|
||||
* directly from an scmi_driver to register its own notifiers.
|
||||
*/
|
||||
static struct scmi_notify_ops notify_ops = {
|
||||
static const struct scmi_notify_ops notify_ops = {
|
||||
.register_event_notifier = scmi_register_notifier,
|
||||
.unregister_event_notifier = scmi_unregister_notifier,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user