aboutsummaryrefslogtreecommitdiff
path: root/drivers/i3c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2019-08-16 15:08:25 +0800
committerBoris Brezillon <boris.brezillon@collabora.com>2019-08-27 09:43:59 +0200
commit6030f42d20cedc04df019891851320f3e257038b (patch)
treed7532f9eae2dbfaf511bbfc8850213061df25a79 /drivers/i3c
parent7afe9a4e56658bd659660ea10671831664469e5f (diff)
downloadlinux-6030f42d20cedc04df019891851320f3e257038b.tar.gz
i3c: master: Use dev_to_i3cmaster()
Since we have dev_to_i3cmaster() available, use it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.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 8ff527263f46..5c051dba32a5 100644
--- a/drivers/i3c/master.c
+++ b/drivers/i3c/master.c
@@ -123,7 +123,7 @@ static struct i3c_dev_desc *dev_to_i3cdesc(struct device *dev)
if (dev->type == &i3c_device_type)
return dev_to_i3cdev(dev)->desc;
- master = container_of(dev, struct i3c_master_controller, dev);
+ master = dev_to_i3cmaster(dev);
return master->this;
}