提交 f12b524e 编写于 作者: V Vitor Soares 提交者: Boris Brezillon

i3c: master: use i3c_dev_get_master()

Since we have i3c_dev_get_master() available, use it.
Signed-off-by: NVitor Soares <vitor.soares@synopsys.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@collabora.com>
上级 54ecb8f7
...@@ -1763,7 +1763,7 @@ static void i3c_master_bus_cleanup(struct i3c_master_controller *master) ...@@ -1763,7 +1763,7 @@ static void i3c_master_bus_cleanup(struct i3c_master_controller *master)
static struct i3c_dev_desc * static struct i3c_dev_desc *
i3c_master_search_i3c_dev_duplicate(struct i3c_dev_desc *refdev) i3c_master_search_i3c_dev_duplicate(struct i3c_dev_desc *refdev)
{ {
struct i3c_master_controller *master = refdev->common.master; struct i3c_master_controller *master = i3c_dev_get_master(refdev);
struct i3c_dev_desc *i3cdev; struct i3c_dev_desc *i3cdev;
i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { i3c_bus_for_each_i3cdev(&master->bus, i3cdev) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册