platform/chrome: chromeos_laptop: Convert to i2c_new_scanned_device

Move from the deprecated i2c_new_probed_device() to the new
i2c_new_scanned_device(). Make use of the new ERRPTR if suitable.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
This commit is contained in:
Wolfram Sang 2019-12-16 13:29:51 +01:00 • committed by Enric Balletbo i Serra
commit c82ebf1bf7