Skip to content

Commit b2057c6

Browse files
Wolfram SangEnric Balletbo i Serra
authored andcommitted
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: c82ebf1 ("platform/chrome: chromeos_laptop: Convert to i2c_new_scanned_device") Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]>
1 parent e0db7c4 commit b2057c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/chrome/chromeos_laptop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ chromes_laptop_instantiate_i2c_device(struct i2c_adapter *adapter,
103103
pr_debug("%d-%02x is probed at %02x\n",
104104
adapter->nr, info->addr, dummy->addr);
105105
i2c_unregister_device(dummy);
106-
client = i2c_new_device(adapter, info);
106+
client = i2c_new_client_device(adapter, info);
107107
}
108108
}
109109

0 commit comments

Comments
 (0)