Skip to contentSkip to conversation

hwmon: (xdp710) Publish the OF module alias

PATCH In review hpp.iscas 3 participants 3 messages Sep 5 Hardware monitoring

lore
Share & tools
lore

hpp.iscas

author
#0 lore raw

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

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")
---
 drivers/hwmon/pmbus/xdp710.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/pmbus/xdp710.c +1 -0
index 494dbe4..bd062d1 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" },
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines

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")

Sashiko has reviewed this patch and found no issues. It looks great!

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

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")

.... add a line saying::

using a known identity (sorry, no anonymous contributions.)

Sorry, I can not accept your patches. hpp.iscas is not a known identity.

Guenter

Quoted 16 lines
---
  drivers/hwmon/pmbus/xdp710.c | 1 +
  1 file changed, 1 insertion(+)
drivers/hwmon/pmbus/xdp710.c +1 -0
index 494dbe4..bd062d1 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" },