summaryrefslogtreecommitdiffstats
path: root/drivers/i3c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-03-26 22:10:02 +0100
committerBoris Brezillon <boris.brezillon@collabora.com>2020-03-29 10:35:50 +0200
commitc4b9de11d0101792c4d5458b18581f4f527862d1 (patch)
tree8369d59a93fe587b034575029b7ae1ffe7cc06fe /drivers/i3c
parenti3c: master: Replace zero-length array with flexible-array member (diff)
downloadlinux-c4b9de11d0101792c4d5458b18581f4f527862d1.tar.xz
linux-c4b9de11d0101792c4d5458b18581f4f527862d1.zip
i3c: convert to use i2c_new_client_device()
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
Diffstat (limited to 'drivers/i3c')
-rw-r--r--drivers/i3c/master.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c
index 925e1ed18a2a..d79cd6d54b3a 100644
--- a/drivers/i3c/master.c
+++ b/drivers/i3c/master.c
@@ -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;
}