diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2017-08-21 13:47:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-21 16:57:53 +0100 |
commit | fc1111b885437f374ed54aadda44d8b241ebd2a3 (patch) | |
tree | ae5218c3a5ee2731d12f7e5875523b519e80bc6e /drivers/regulator/fan53555.c | |
parent | d110e3e921742980a54c27f16086dc5a6c1aecd7 (diff) |
regulator: fan53555: fix I2C device ids
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: e80c47bd738b (regulator: fan53555: Export I2C module alias information)
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/fan53555.c')
-rw-r--r-- | drivers/regulator/fan53555.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 6b1c0e4672a2..a3bc8037153e 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -470,7 +470,10 @@ static const struct i2c_device_id fan53555_id[] = { .name = "fan53555", .driver_data = FAN53555_VENDOR_FAIRCHILD }, { - .name = "syr82x", + .name = "syr827", + .driver_data = FAN53555_VENDOR_SILERGY + }, { + .name = "syr828", .driver_data = FAN53555_VENDOR_SILERGY }, { }, |