Commit 6030f42d authored by Axel Lin's avatar Axel Lin Committed by Boris Brezillon
Browse files

i3c: master: Use dev_to_i3cmaster()



Since we have dev_to_i3cmaster() available, use it.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent 7afe9a4e
...@@ -123,7 +123,7 @@ static struct i3c_dev_desc *dev_to_i3cdesc(struct device *dev) ...@@ -123,7 +123,7 @@ static struct i3c_dev_desc *dev_to_i3cdesc(struct device *dev)
if (dev->type == &i3c_device_type) if (dev->type == &i3c_device_type)
return dev_to_i3cdev(dev)->desc; return dev_to_i3cdev(dev)->desc;
master = container_of(dev, struct i3c_master_controller, dev); master = dev_to_i3cmaster(dev);
return master->this; return master->this;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment