Message ID | a9d994b78d50a21e4eeb3a92004c56e68bb52e79.1567681102.git.vitor.soares@synopsys.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | f12b524ea3865805f7aa590616127f706149bf02 |
Headers | show |
Series | i3c: master: use i3c_dev_get_master() | expand |
Hi Boris, Friendly ping. Best regards, Vitor Soares -----Original Message----- From: Vitor Soares <vitor.soares@synopsys.com> Sent: Thursday, September 5, 2019 12:07 PM To: linux-i3c@lists.infradead.org Cc: bbrezillon@kernel.org; Joao Pinto <jpinto@synopsys.com>; Vitor Soares <vitor.soares@synopsys.com> Subject: [PATCH] i3c: master: use i3c_dev_get_master() Since we have i3c_dev_get_master() available, use it. Signed-off-by: Vitor Soares <vitor.soares@synopsys.com> --- drivers/i3c/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 5f4bd52..d54039a 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -1779,7 +1779,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) {
diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 5f4bd52..d54039a 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -1779,7 +1779,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) {
Since we have i3c_dev_get_master() available, use it. Signed-off-by: Vitor Soares <vitor.soares@synopsys.com> --- drivers/i3c/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)