]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
interconnect: qcom: osm-l3: Mark more structures const
authorStephen Boyd <swboyd@chromium.org>
Tue, 15 Sep 2020 06:10:21 +0000 (09:10 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 15 Sep 2020 06:10:21 +0000 (09:10 +0300)
commitb1a367bb1cbba607d6c5d7dcf828b049241ee9a6
tree5837dbc2c4a21ead877130ab49e57d3dacb7c671
parentd7e19be60b28a468385db3906b735e080352b7b2
interconnect: qcom: osm-l3: Mark more structures const

These structures aren't modified at runtime. Mark them const so they get
moved to read-only memory. We have to cast away const in one place when
we store into the data member of struct icc_node. This is paired with a
re-const of the data member when it is extracted in qcom_icc_set().

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Link: https://lore.kernel.org/r/20200914182112.513981-1-swboyd@chromium.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/qcom/osm-l3.c