Skip to contentSkip to conversation

hwmon: (xdp710) export the OF module alias

PATCH Applied Pengpeng Hou 3 participants 3 messages Dec 3 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 hwmon: (xdp710) export the OF module alias

xdp710 exports its I2C ID table but not its OF match table. Export the latter so the OF modalias generated for a device tree client can load the driver.

Fixes 35fe06d94e39 ("hwmon: (pmbus) Add support for Infineon XDP710")

---
Changes since v1:
Use the author's full name.
Previous version: https://lore.kernel.org/r/[email protected]

Codex assisted with patch preparation and the changelog. Current review: Codex (Assisted-by: gpt 5). Static review only; this revision was not built.

 drivers/hwmon/pmbus/xdp710.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/pmbus/xdp710.c +1 -0
index 494dbe45ebc6b50450643fbf43b93c9c2640ff0a..bd062d141ae9a6ae5d87e41df05748e71f763f63 100644
@@ -108,6 +108,7 @@ static const struct of_device_id xdp710_of_match[] = {
 	{ .compatible = "infineon,xdp710" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, xdp710_of_match);
 
 static const struct i2c_device_id xdp710_id[] = {
 	{ .name = "xdp710" },

base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790

#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 6 lines

xdp710 exports its I2C ID table but not its OF match table. Export the latter so the OF modalias generated for a device tree client can load the driver.

Fixes 35fe06d94e39 ("hwmon: (pmbus) Add support for Infineon XDP710")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Applied
#2 lore raw
In reply to Pengpeng Hou
Quoted 6 lines · Pengpeng Hou

xdp710 exports its I2C ID table but not its OF match table. Export the latter so the OF modalias generated for a device tree client can load the driver.

Fixes 35fe06d94e39 ("hwmon: (pmbus) Add support for Infineon XDP710")

Applied.

Thanks,
Guenter