Skip to content

Commit a272dc7

Browse files
gctuckergregkh
authored andcommitted
regulator: fan53555: fix I2C device ids
commit fc1111b885437f374ed54aadda44d8b241ebd2a3 upstream. The device tree nodes all correctly describe the regulators as syr827 or syr828, but the I2C device id is currently set to the wildcard value of syr82x in the driver. This causes udev to fail to match the driver module with the modalias data from sysfs. Fix this by replacing the I2C device ids with ones that match the device tree descriptions, with syr827 and syr828. Tested on Firefly rk3288 board. The syr82x id was not used anywhere. Fixes: e80c47b (regulator: fan53555: Export I2C module alias information) Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 120ef1a commit a272dc7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/regulator/fan53555.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,10 @@ static const struct i2c_device_id fan53555_id[] = {
434434
.name = "fan53555",
435435
.driver_data = FAN53555_VENDOR_FAIRCHILD
436436
}, {
437-
.name = "syr82x",
437+
.name = "syr827",
438+
.driver_data = FAN53555_VENDOR_SILERGY
439+
}, {
440+
.name = "syr828",
438441
.driver_data = FAN53555_VENDOR_SILERGY
439442
},
440443
{ },

0 commit comments

Comments
 (0)