linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: mux: pinctrl: fix indentation for better readability
@ 2016-04-22 13:44 Wolfram Sang
  2016-04-22 14:32 ` Peter Rosin
  2016-04-24 21:12 ` Wolfram Sang
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfram Sang @ 2016-04-22 13:44 UTC (permalink / raw)
  To: linux-i2c; +Cc: Peter Rosin, Wolfram Sang

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>
---
 drivers/i2c/muxes/i2c-mux-pinctrl.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c
index 1b8dc711815ed3..f4e62f4a50cc42 100644
--- a/drivers/i2c/muxes/i2c-mux-pinctrl.c
+++ b/drivers/i2c/muxes/i2c-mux-pinctrl.c
@@ -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,
-- 
2.7.0

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

* Re: [PATCH] i2c: mux: pinctrl: fix indentation for better readability
  2016-04-22 13:44 [PATCH] i2c: mux: pinctrl: fix indentation for better readability Wolfram Sang
@ 2016-04-22 14:32 ` Peter Rosin
  2016-04-24 21:12 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Rosin @ 2016-04-22 14:32 UTC (permalink / raw)
  To: Wolfram Sang, linux-i2c

On 2016-04-22 15:44, Wolfram Sang wrote:
> smatch rightfully says:
>
> drivers/i2c/muxes/i2c-mux-pinctrl.c:175 i2c_mux_pinctrl_probe() warn: inconsistent indenting
>
Acked-by: Peter Rosin <peda@axentia.se>

Cheers,
Peter

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

* Re: [PATCH] i2c: mux: pinctrl: fix indentation for better readability
  2016-04-22 13:44 [PATCH] i2c: mux: pinctrl: fix indentation for better readability Wolfram Sang
  2016-04-22 14:32 ` Peter Rosin
@ 2016-04-24 21:12 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2016-04-24 21:12 UTC (permalink / raw)
  To: linux-i2c; +Cc: Peter Rosin

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

On Fri, Apr 22, 2016 at 03:44:07PM +0200, Wolfram Sang wrote:
> 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>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2016-04-24 21:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-22 13:44 [PATCH] i2c: mux: pinctrl: fix indentation for better readability Wolfram Sang
2016-04-22 14:32 ` Peter Rosin
2016-04-24 21:12 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).