Skip to content

Commit

Permalink
i3c: master: use i3c_dev_get_master()
Browse files Browse the repository at this point in the history
Since we have i3c_dev_get_master() available, use it.

Signed-off-by: Vitor Soares <vitor.soares@synopsys.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
  • Loading branch information
Vitor Soares authored and Boris Brezillon committed Oct 1, 2019
1 parent 54ecb8f commit f12b524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i3c/master.c
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ static void i3c_master_bus_cleanup(struct i3c_master_controller *master)
static struct i3c_dev_desc *
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;

i3c_bus_for_each_i3cdev(&master->bus, i3cdev) {
Expand Down

0 comments on commit f12b524

Please sign in to comment.