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

From: hpp.iscas

Date: Sat Sep 05 2026 - 09:45:36 EST


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@xxxxxxx>
---
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,