Skip to content

Commit 6729c13

Browse files
xhackerustcbroonie
authored andcommitted
regulator: mp886x: Fix ID table driver_data
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f172ffd commit 6729c13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/regulator/mp886x.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ static const struct of_device_id mp886x_dt_ids[] = {
348348
MODULE_DEVICE_TABLE(of, mp886x_dt_ids);
349349

350350
static const struct i2c_device_id mp886x_id[] = {
351-
{ "mp886x", (kernel_ulong_t)&mp8869_ci },
351+
{ "mp8867", (kernel_ulong_t)&mp8867_ci },
352+
{ "mp8869", (kernel_ulong_t)&mp8869_ci },
352353
{ },
353354
};
354355
MODULE_DEVICE_TABLE(i2c, mp886x_id);

0 commit comments

Comments
 (0)