]> www.infradead.org Git - users/willy/xarray.git/commit
firmware: arm_scmi: Remove const from transport descriptors
authorCristian Marussi <cristian.marussi@arm.com>
Tue, 30 Jul 2024 14:47:02 +0000 (15:47 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Sun, 18 Aug 2024 19:22:16 +0000 (20:22 +0100)
commit668f0cb2337f9fc5536a0880a8e13cc735efa00d
tree9f9f3dff0c2cd51b7d67797a9c1340e9f16cc351
parenta8bd37e645602afcafc9d5f428c10aeda606b279
firmware: arm_scmi: Remove const from transport descriptors

The descriptor structure scmi_desc contains a variety of fields related to
the transport functionalities and it is defined by the transport drivers
themselves; such elements, though, serve varied purposes and have different
lifetime.

In particular, while there are some of those elements that provide a
description of transport features that are supposed to be immutable, on
the other side there are present also some other characteristics that are
instead supposed to be configurable on a per-platform base since they
represent configuration features tied to the specific hardware/firmware
system.

The immutable fields are already qualified as const on the their own; get
rid of the structure-level const qualifier which is not needed, so as to
enable possible runtime customization of the mutable configuration
features.

No functional change.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Peng Fan <peng.fan@nxp.com> #i.MX95 19x19 EVK
Message-Id: <20240730144707.1647025-2-cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/transports/mailbox.c
drivers/firmware/arm_scmi/transports/optee.c
drivers/firmware/arm_scmi/transports/smc.c
drivers/firmware/arm_scmi/transports/virtio.c