[PATCH] power: supply: mm8013: Publish the OF module alias

hpp.iscas posted 1 patch 2 weeks, 6 days ago
drivers/power/supply/mm8013.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] power: supply: mm8013: Publish the OF module alias
Posted by hpp.iscas 2 weeks, 6 days ago
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")
Signed-off-by: hpp.iscas <hppiscas@163.com>
---
 drivers/power/supply/mm8013.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/supply/mm8013.c b/drivers/power/supply/mm8013.c
index 819667a..c38f483 100644
--- a/drivers/power/supply/mm8013.c
+++ b/drivers/power/supply/mm8013.c
@@ -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,
Re: [PATCH] power: supply: mm8013: Publish the OF module alias
Posted by Sebastian Reichel 2 weeks, 2 days ago
On Sat, 05 Sep 2026 21:45:00 +0800, hpp.iscas wrote:
> 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,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>