[PATCH] hwmon: (xdp710) Publish the OF module alias
From: hpp.iscas
Date: Sat Sep 05 2026 - 09:41:07 EST
The XDP710 driver registers xdp710_of_match, but only exports its I2C
ID table. Device Tree clients emit an OF modalias instead of the
legacy I2C alias.
Publish the existing OF table to make module selection available for
that enumeration path.
Fixes: 35fe06d94e39 ("hwmon: (pmbus) Add support for Infineon XDP710")
Signed-off-by: hpp.iscas <hppiscas@xxxxxxx>
---
drivers/hwmon/pmbus/xdp710.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/hwmon/pmbus/xdp710.c b/drivers/hwmon/pmbus/xdp710.c
index 494dbe4..bd062d1 100644
--- a/drivers/hwmon/pmbus/xdp710.c
+++ b/drivers/hwmon/pmbus/xdp710.c
@@ -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" },