]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i2c: mux: pinctrl: fix indentation for better readability
authorWolfram Sang <wsa@the-dreams.de>
Fri, 22 Apr 2016 13:44:07 +0000 (15:44 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 24 Apr 2016 21:11:41 +0000 (23:11 +0200)
smatch rightfully says:

drivers/i2c/muxes/i2c-mux-pinctrl.c:175 i2c_mux_pinctrl_probe() warn: inconsistent indenting

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-mux-pinctrl.c

index 1b8dc711815ed36089862dad31f967eccad5a81d..f4e62f4a50cc42978833f1e04ce0c77069c628b8 100644 (file)
@@ -172,13 +172,13 @@ static int i2c_mux_pinctrl_probe(struct platform_device *pdev)
        for (i = 0; i < mux->pdata->bus_count; i++) {
                mux->states[i] = pinctrl_lookup_state(mux->pinctrl,
                                                mux->pdata->pinctrl_states[i]);
-                       if (IS_ERR(mux->states[i])) {
-                               ret = PTR_ERR(mux->states[i]);
-                               dev_err(&pdev->dev,
-                                       "Cannot look up pinctrl state %s: %d\n",
-                                       mux->pdata->pinctrl_states[i], ret);
-                               goto err;
-                       }
+               if (IS_ERR(mux->states[i])) {
+                       ret = PTR_ERR(mux->states[i]);
+                       dev_err(&pdev->dev,
+                               "Cannot look up pinctrl state %s: %d\n",
+                               mux->pdata->pinctrl_states[i], ret);
+                       goto err;
+               }
        }
        if (mux->pdata->pinctrl_state_idle) {
                mux->state_idle = pinctrl_lookup_state(mux->pinctrl,