]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
regulator: mp886x: Fix ID table driver_data
authorJisheng Zhang <jszhang@kernel.org>
Sun, 29 Jun 2025 09:59:18 +0000 (17:59 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 30 Jun 2025 15:06:40 +0000 (16:06 +0100)
Currently, the driver_data of the i2c ID table is wrong, so it won't
work if any mp886x user makes use of the ID table. Fortunately, there's
no such user in upstream source code, we can fix the issue by using
different ID table entry for mp8867 and mp8869.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://patch.msgid.link/20250629095918.912-1-jszhang@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mp886x.c

index 48dcee5287f3d3fe3d8c2c57243ae718a2e70ef6..9ad16b04c913cd9a2c451f83a33fb0ceed0e9153 100644 (file)
@@ -348,7 +348,8 @@ static const struct of_device_id mp886x_dt_ids[] = {
 MODULE_DEVICE_TABLE(of, mp886x_dt_ids);
 
 static const struct i2c_device_id mp886x_id[] = {
-       { "mp886x", (kernel_ulong_t)&mp8869_ci },
+       { "mp8867", (kernel_ulong_t)&mp8867_ci },
+       { "mp8869", (kernel_ulong_t)&mp8869_ci },
        { },
 };
 MODULE_DEVICE_TABLE(i2c, mp886x_id);