Skip to content

Commit f172ffd

Browse files
xhackerustcbroonie
authored andcommitted
regulator: sy8824x: Fix ID table driver_data
Currently, the driver_data of the i2c ID table is wrong, so it won't work if any sy8824x 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 sy8824c, sy8824e, sy20276 and sy20278. Signed-off-by: Jisheng Zhang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent eeca209 commit f172ffd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/regulator/sy8824x.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ static const struct of_device_id sy8824_dt_ids[] = {
213213
MODULE_DEVICE_TABLE(of, sy8824_dt_ids);
214214

215215
static const struct i2c_device_id sy8824_id[] = {
216-
{ "sy8824", (kernel_ulong_t)&sy8824c_cfg },
216+
{ "sy8824c", (kernel_ulong_t)&sy8824c_cfg },
217+
{ "sy8824e", (kernel_ulong_t)&sy8824e_cfg },
218+
{ "sy20276", (kernel_ulong_t)&sy20276_cfg },
219+
{ "sy20278", (kernel_ulong_t)&sy20278_cfg },
217220
{ }
218221
};
219222
MODULE_DEVICE_TABLE(i2c, sy8824_id);

0 commit comments

Comments
 (0)