All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i3c: master: no need to iterate master device twice
@ 2020-02-14 14:58 ` Wolfram Sang
  0 siblings, 0 replies; 12+ messages in thread
From: Wolfram Sang @ 2020-02-14 14:58 UTC (permalink / raw)
  To: linux-i3c; +Cc: linux-renesas-soc, Wolfram Sang

We already have the master device in a variable, reuse it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Found while refactoring of_i2c_get_board_info() and checking its users.

 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 7f8f896fa0c3..b56207bbed2b 100644
--- a/drivers/i3c/master.c
+++ b/drivers/i3c/master.c
@@ -1953,7 +1953,7 @@ of_i3c_master_add_i2c_boardinfo(struct i3c_master_controller *master,
 	 * DEFSLVS command.
 	 */
 	if (boardinfo->base.flags & I2C_CLIENT_TEN) {
-		dev_err(&master->dev, "I2C device with 10 bit address not supported.");
+		dev_err(dev, "I2C device with 10 bit address not supported.");
 		return -ENOTSUPP;
 	}
 
-- 
2.20.1


_______________________________________________
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-02-18  8:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-14 14:58 [PATCH] i3c: master: no need to iterate master device twice Wolfram Sang
2020-02-14 14:58 ` Wolfram Sang
2020-02-14 15:22 ` Geert Uytterhoeven
2020-02-14 15:22   ` Geert Uytterhoeven
2020-02-17 10:43   ` Vitor Soares
2020-02-17 10:43     ` Vitor Soares
2020-02-17 11:29     ` Boris Brezillon
2020-02-17 11:29       ` Boris Brezillon
2020-02-17 11:18 ` Vitor Soares
2020-02-17 11:18   ` Vitor Soares
2020-02-18  0:38 ` Kieran Bingham
2020-02-18  0:38   ` Kieran Bingham

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.