hwmon: (cgbc-hwmon) Add module alias
PATCH 1/1 hwmon: (cgbc-hwmon) Add module alias
The board controller's core driver adds the hwmon cell as platform device "cgbc-hwmon", but the driver declares no matching module alias. Built as a module, it is therefore not loaded automatically, unlike the GPIO, I2C and backlight drivers, and the sensors stay missing until it is loaded by hand.
Tested on a conga-PA7: with the alias, the driver loads at boot.
The patch and this changelog were drafted with the help of Claude Opus 5.5 and reviewed and tested by me.
--- drivers/hwmon/cgbc-hwmon.c | 1 + 1 file changed, 1 insertion(+)
drivers/hwmon/cgbc-hwmon.c +1 -0
@@ -336,3 +336,4 @@ module_platform_driver(cgbc_hwmon_driver);MODULE_AUTHOR ("Thomas Richard <[email protected]>" );MODULE_DESCRIPTION ("Congatec Board Controller Hardware Monitoring Driver" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:cgbc-hwmon" );
---
base-commit: 7940d60c4b165cd7c265bf17f86b8299b7f204b1
change-id: 20261123-cgbc-hwmon-alias-6fed8be4cb52
Best regards,
Signature · 1 line
Markus Haberlander <[email protected]>
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 8 lines
From: Markus Haberlander <[email protected]>
The board controller's core driver adds the hwmon cell as platform device "cgbc-hwmon", but the driver declares no matching module alias. Built as a module, it is therefore not loaded automatically, unlike the GPIO, I2C and backlight drivers, and the sensors stay missing until it is loaded by hand.
Quoted 8 lines
Tested on a conga-PA7: with the alias, the driver loads at boot.
The patch and this changelog were drafted with the help of Claude Opus 5.5 and reviewed and tested by me.
Fixes 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")Signed-off-by Markus Haberlander <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 8 lines · Markus Haberlander
From: Markus Haberlander <[email protected]>
The board controller's core driver adds the hwmon cell as platform device "cgbc-hwmon", but the driver declares no matching module alias. Built as a module, it is therefore not loaded automatically, unlike the GPIO, I2C and backlight drivers, and the sensors stay missing until it is loaded by hand.
Quoted 8 lines
Tested on a conga-PA7: with the alias, the driver loads at boot.
The patch and this changelog were drafted with the help of Claude Opus 5.5 and reviewed and tested by me.
Fixes 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")Signed-off-by Markus Haberlander <[email protected]>
Applied.
Thanks,
Guenter