i3c: master: no need to iterate master device twice
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 14 Feb 2020 14:58:53 +0000 (15:58 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 17 Feb 2020 22:13:43 +0000 (23:13 +0100)
We already have the master device in a variable, reuse it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Vitor Soares <vitor.soares@synopsys.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-i3c/20200214145853.24762-1-wsa+renesas@sang-engineering.com
drivers/i3c/master.c

index 7f8f896fa0c38bb710b21560368c44d4ce94a979..b56207bbed2b524e2a0e3093976dd1a754605c60 100644 (file)
@@ -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;
        }