Skip to contentSkip to conversation

power: supply: mm8013: Publish the OF module alias

PATCH Applied hpp.iscas 2 participants 2 messages Sep 5 – Sep 9

Subsystems (2)
lore
Share & tools
lore

hpp.iscas

author
#0 lore raw

PATCH 1/1 power: supply: mm8013: Publish the OF module alias

The MM8013 driver matches mitsumi,mm8013 Device Tree clients, but exports only its legacy I2C ID table. The I2C core emits an OF modalias for these clients rather than i2c:mm8013.

Publish the existing OF match table without changing gauge operations.

Fixes c75f4bf6800b ("power: supply: Introduce MM8013 fuel gauge driver")
---
 drivers/power/supply/mm8013.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/mm8013.c +1 -0
index 819667a..c38f483 100644
@@ -293,6 +293,7 @@ static const struct of_device_id mm8013_match_table[] = {
 	{ .compatible = "mitsumi,mm8013" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, mm8013_match_table);
 
 static struct i2c_driver mm8013_i2c_driver = {
 	.probe = mm8013_probe,
#1 lore raw
Quoted 8 lines · hpp.iscas

The MM8013 driver matches mitsumi,mm8013 Device Tree clients, but exports only its legacy I2C ID table. The I2C core emits an OF modalias for these clients rather than i2c:mm8013.

Publish the existing OF match table without changing gauge operations.

[...]

Applied, thanks!

[1/1] power: supply: mm8013: Publish the OF module alias

      commit: 95450ccb3545c8ecbd61a41d4727ff8df86d3bd3

Best regards,

Signature · 1 line
Sebastian Reichel <[email protected]>