linux/Documentation/driver-api/driver-model
Shashank Balaji a7a7dc5c46 driver core: platform: set mod_name in driver registration
Pass KBUILD_MODNAME through the driver registration macro so that the
driver core can create the module symlink in sysfs for built-in drivers,
and fixup all callers.

The Rust platform adapter is updated to pass the module name through to
the new parameter.

Tested on qemu with:
- x86 defconfig + CONFIG_RUST
- arm64 defconfig + CONFIG_RUST + CONFIG_CORESIGHT stuff

Examples after this patch:

    /sys/bus/platform/drivers/...
        coresight-itnoc/module		-> coresight_tnoc
        coresight-static-tpdm/module	-> coresight_tpdm
        coresight-catu-platform/module	-> coresight_catu
        serial8250/module		-> 8250
        acpi-ged/module			-> acpi
        vmclock/module			-> ptp_vmclock

Co-developed-by: Rahul Bukte <rahul.bukte@sony.com>
Signed-off-by: Rahul Bukte <rahul.bukte@sony.com>
Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
Link: https://patch.msgid.link/20260518-acpi_mod_name-v5-4-705ccc430885@sony.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-06-08 23:28:24 +02:00
..
binding.rst docs: driver-model: document driver_override 2026-03-17 20:30:57 +01:00
bus.rst driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
design-patterns.rst docs: Update documentation to avoid mentioning of kernel.h 2025-12-22 14:59:18 -07:00
device.rst docs: driver-model: device: Add ATTRIBUTE_GROUPS() example 2021-03-08 17:06:56 -07:00
devres.rst workqueue: devres: Add device-managed allocate workqueue 2026-03-10 07:03:39 -10:00
driver.rst docs: driver-model: remove a duplicated markup at driver.rst 2020-06-26 10:01:24 -06:00
index.rst Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
overview.rst docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
platform.rst driver core: platform: set mod_name in driver registration 2026-06-08 23:28:24 +02:00
porting.rst