summaryrefslogtreecommitdiff
path: root/drivers/firmware/arm_scmi/transports/virtio.c
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2024-07-30 15:47:02 +0100
committerSudeep Holla <sudeep.holla@arm.com>2024-08-18 20:22:16 +0100
commit668f0cb2337f9fc5536a0880a8e13cc735efa00d (patch)
tree9f9f3dff0c2cd51b7d67797a9c1340e9f16cc351 /drivers/firmware/arm_scmi/transports/virtio.c
parenta8bd37e645602afcafc9d5f428c10aeda606b279 (diff)
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>
Diffstat (limited to 'drivers/firmware/arm_scmi/transports/virtio.c')
-rw-r--r--drivers/firmware/arm_scmi/transports/virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/transports/virtio.c b/drivers/firmware/arm_scmi/transports/virtio.c
index c107579e7fe7..d349766bc0b2 100644
--- a/drivers/firmware/arm_scmi/transports/virtio.c
+++ b/drivers/firmware/arm_scmi/transports/virtio.c
@@ -790,7 +790,7 @@ static const struct scmi_transport_ops scmi_virtio_ops = {
.poll_done = virtio_poll_done,
};
-static const struct scmi_desc scmi_virtio_desc = {
+static struct scmi_desc scmi_virtio_desc = {
.ops = &scmi_virtio_ops,
/* for non-realtime virtio devices */
.max_rx_timeout_ms = VIRTIO_MAX_RX_TIMEOUT_MS,