Commit b2057c64 authored by Wolfram Sang's avatar Wolfram Sang Committed by Enric Balletbo i Serra

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: c82ebf1b ("platform/chrome: chromeos_laptop: Convert to i2c_new_scanned_device")
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
parent e0db7c42
...@@ -103,7 +103,7 @@ chromes_laptop_instantiate_i2c_device(struct i2c_adapter *adapter, ...@@ -103,7 +103,7 @@ chromes_laptop_instantiate_i2c_device(struct i2c_adapter *adapter,
pr_debug("%d-%02x is probed at %02x\n", pr_debug("%d-%02x is probed at %02x\n",
adapter->nr, info->addr, dummy->addr); adapter->nr, info->addr, dummy->addr);
i2c_unregister_device(dummy); i2c_unregister_device(dummy);
client = i2c_new_device(adapter, info); client = i2c_new_client_device(adapter, info);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment