Re: [PATCH v3 8/9] firmware: arm_scmi: Make VirtIO transport a standalone driver
From: Krzysztof Kozlowski
Date: Wed Jul 31 2024 - 02:11:38 EST
On 30/07/2024 15:33, Cristian Marussi wrote:
> Make SCMI VirtIO transport a standalone driver that can be optionally
> loaded as a module.
>
> -const struct scmi_desc scmi_virtio_desc = {
> - .transport_init = virtio_scmi_init,
> - .transport_exit = virtio_scmi_exit,
> - .ops = &scmi_virtio_ops,
> - /* for non-realtime virtio devices */
> - .max_rx_timeout_ms = VIRTIO_MAX_RX_TIMEOUT_MS,
> - .max_msg = 0, /* overridden by virtio_get_max_msg() */
> - .max_msg_size = VIRTIO_SCMI_MAX_MSG_SIZE,
> - .atomic_enabled = IS_ENABLED(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE),
> -};
> +MODULE_ALIAS("scmi-transport-virtio");
Why do you need the alias being almost the same as module name?
Best regards,
Krzysztof