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:
parent
7afe9a4e56
commit
6030f42d20
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue