Skip to content

Commit

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

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
  • Loading branch information
AxelLin authored and bbrezillon committed Aug 27, 2019
1 parent 7afe9a4 commit 6030f42
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 @@ -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;
}
Expand Down

0 comments on commit 6030f42

Please sign in to comment.