[PATCH v3 8/9] firmware: arm_scmi: Make VirtIO transport a standalone driver
Krzysztof Kozlowski
krzk at kernel.org
Tue Jul 30 23:11:21 PDT 2024
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
More information about the linux-arm-kernel
mailing list