diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-03-26 22:09:51 +0100 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2020-03-27 18:25:32 +0100 |
commit | b2057c64017e96f1f9471fe49569508711f7663f (patch) | |
tree | ba52762bc24ee335e144daf22f864566601df191 /drivers/platform/chrome | |
parent | e0db7c42b05f7b9d76174db56d683f0ec4f206c1 (diff) | |
download | linux-b2057c64017e96f1f9471fe49569508711f7663f.tar.gz linux-b2057c64017e96f1f9471fe49569508711f7663f.tar.bz2 linux-b2057c64017e96f1f9471fe49569508711f7663f.zip |
platform/chrome: chromeos_laptop: make I2C API conversion complete
When converting to i2c_new_scanned_device(), it was overlooked that a
conversion to i2c_new_client_device() was also needed. Fix it.
Fixes: c82ebf1bf738 ("platform/chrome: chromeos_laptop: Convert to i2c_new_scanned_device")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r-- | drivers/platform/chrome/chromeos_laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c index 4f3651fcd9fe..472a03daa869 100644 --- a/drivers/platform/chrome/chromeos_laptop.c +++ b/drivers/platform/chrome/chromeos_laptop.c @@ -103,7 +103,7 @@ chromes_laptop_instantiate_i2c_device(struct i2c_adapter *adapter, pr_debug("%d-%02x is probed at %02x\n", adapter->nr, info->addr, dummy->addr); i2c_unregister_device(dummy); - client = i2c_new_device(adapter, info); + client = i2c_new_client_device(adapter, info); } } |