mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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 <jszhang@kernel.org> Link: https://patch.msgid.link/20250629095905.898-1-jszhang@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
eeca209124
commit
f172ffde18
@ -213,7 +213,10 @@ static const struct of_device_id sy8824_dt_ids[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, sy8824_dt_ids);
|
MODULE_DEVICE_TABLE(of, sy8824_dt_ids);
|
||||||
|
|
||||||
static const struct i2c_device_id sy8824_id[] = {
|
static const struct i2c_device_id sy8824_id[] = {
|
||||||
{ "sy8824", (kernel_ulong_t)&sy8824c_cfg },
|
{ "sy8824c", (kernel_ulong_t)&sy8824c_cfg },
|
||||||
|
{ "sy8824e", (kernel_ulong_t)&sy8824e_cfg },
|
||||||
|
{ "sy20276", (kernel_ulong_t)&sy20276_cfg },
|
||||||
|
{ "sy20278", (kernel_ulong_t)&sy20278_cfg },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, sy8824_id);
|
MODULE_DEVICE_TABLE(i2c, sy8824_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user