]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
i3c: convert to use i2c_new_client_device()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 26 Mar 2020 21:10:02 +0000 (22:10 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Sun, 29 Mar 2020 08:35:50 +0000 (10:35 +0200)
Move away from the deprecated API.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-i3c/20200326211002.13241-2-wsa+renesas@sang-engineering.com
drivers/i3c/master.c

index 925e1ed18a2aaaae262a1200d35244d5675f7de5..d79cd6d54b3a7c1688885b3d68a5c6eb65da683a 100644 (file)
@@ -2160,7 +2160,7 @@ static int i3c_master_i2c_adapter_init(struct i3c_master_controller *master)
         * correctly even if one or more i2c devices are not registered.
         */
        i3c_bus_for_each_i2cdev(&master->bus, i2cdev)
-               i2cdev->dev = i2c_new_device(adap, &i2cdev->boardinfo->base);
+               i2cdev->dev = i2c_new_client_device(adap, &i2cdev->boardinfo->base);
 
        return 0;
 }