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>
This commit is contained in:
Axel Lin 2019-08-16 15:08:25 +08:00 committed by Boris Brezillon
parent 7afe9a4e56
commit 6030f42d20

View File

@ -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;
}