Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp359912rbe; Thu, 29 Feb 2024 01:27:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXl2tjfgJs5RU1fRKZvoISbczjzfFa5GWYjQb/u1F0UHzlq1VL+5i8IW3jnLeE4wkNPduI1c1M0ZvcEHS59VVTEFRBGi5HqFvzWNPIylA== X-Google-Smtp-Source: AGHT+IFN6caRC0PMDgxDdAQ4ndMQg8YWNrD8pAyqXITjnQgAKOWsod0Nej0wCfY61TASLLSsZj7H X-Received: by 2002:a9d:6a1a:0:b0:6e4:4ae0:b01a with SMTP id g26-20020a9d6a1a000000b006e44ae0b01amr1532135otn.19.1709198830956; Thu, 29 Feb 2024 01:27:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709198830; cv=pass; d=google.com; s=arc-20160816; b=Dgge3qUNutGeeblEgU6LdA/bWAm+5jNM5vJJqdB8m4/C7+muQ1EpEQ/k/BhJntzyTt cImJrkEFKXcx4GZc/1YxcVWqNSXk9qQmLYB9vOpq41UkBGyNsedatULv9Nbg8672SFGG rdrd7nzWeHYtSAAArh1E7xbfLuS5iYJUU4LtgPRISHT73CjQ/yDq4K4fg8u7WynRteS2 6jYOu0x776miWi3gMySu1vHO2Mbc6LZoJmnhvWaUrNUZpTckeixiRrnuUUL+S9QfwePU NPtGo3SEUT1ZX3stXPwfCnRGBA6qysytWRaARQqxk7sAH2pGJ7b43IaE+XP7edoAGMn9 BD6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=BynpSFPstF+JPRCovNMfjh5xTc1CIZoNd8nL81uMYyY=; fh=ThZyJq3tfq/vhKu0IllOoEZCL54sWlclqIu5FxbRYvE=; b=aKfAXmDDk//Hl7BuzmDajtR7DyYHsPRhEqvWlJoF+MeuEGJ6yU9/BTodO3g5yT58zi cjMuePrzl2Y4fs/CiRrjnd9EkQLHGwFDdyOn9XXNwD2FxGgllq2ZXm5NZzY4XOF9oxVe bICEpOSAwZxr32zktwJJxS53ijb6hK62+kzMy0Vv4erR+8K8LWsqVxEyUuVJ03Gy8A6n N5mTBGbkPT/jFAKpEYhnfpVO33o819RuRTZEDuE25dmozFPG80aEFyXbzYx9qUrnbZ1B KFkXBoXBZEp2e8DORChRgaknLYWS3yhCNWws2p6t9aUOGiH07P7RRiQmVGLeeBxl+57w DZbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nXYyUMPa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-86414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l15-20020a65680f000000b005df43caee00si1041391pgt.318.2024.02.29.01.27.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:27:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nXYyUMPa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-86414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A1A528D5C4 for ; Thu, 29 Feb 2024 09:27:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E00095B696; Thu, 29 Feb 2024 09:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nXYyUMPa" Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82FA55B5D3 for ; Thu, 29 Feb 2024 09:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198810; cv=none; b=gW7sc6lVZ2GXa42doi8XR6TWuUiwvN1Eqihar5uSPUYpTMN+Kh3EJUFn16/wXticiMOv9YBf4gr5UqbabJVp0nDGmdf/cQ3wH4vur3LqqrmcJ+JtDIvGzWmLMNV9C3UQTH3ubuXlw2GnzM8pIqiA3MXxU01ZbMSKV4GW4cNtMUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198810; c=relaxed/simple; bh=mMVB3NbVb2aor6sIOhTKCLgvCgLNr1BwNA02SqIQ2f8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=khAhC982GoxuyABHTXbO6ouhAMLZ1fHqG3g3mLwkCeJgIPqwC5K9k+azxQ1UVeO7x0eTXIWHyUJA3oIZRX+vNEhP8AGHPId2ROcnFCX3+8BjQXWlWXDBil4RrhL6PvmTYC+nOOjlSps9rP0cr0So5otPyTz7qslw8zH+DNEZlkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=nXYyUMPa; arc=none smtp.client-ip=209.85.128.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-60822b444c9so4574467b3.2 for ; Thu, 29 Feb 2024 01:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709198807; x=1709803607; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BynpSFPstF+JPRCovNMfjh5xTc1CIZoNd8nL81uMYyY=; b=nXYyUMPahqcmdnXVePAsGhpdzsdYM+6chflJELk3irKfodzos+tvQY7x+djuFSE+qa q9eCtmjtli5ZMAzkJPBquAf7XtUXQjNNLcXkOFFPFNV2GrJZ51jyMwayt/eV3U0cTK4f nulm2kwtUG942P2Bf2qTRor42vlTXQf/yQ06JtGUedIbzkbkKErXooS0u5szO+SmCnA1 6pWQXEt/9tefpxDP9SMSjSv77Wc7c3Aw8Z6AIs4fZn0/U/RYzkdc1wxknxXJKsSfKsL0 a6SHO0wK65k5YyYiW8QcK80ZKLJ3U9PijlrXKgHot6cfJZvFTHRUYqpqm1j0t+0hByJ+ fybQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709198807; x=1709803607; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BynpSFPstF+JPRCovNMfjh5xTc1CIZoNd8nL81uMYyY=; b=LIQBB+Oirq7DgS5Np+RnukVKScw9YAf8WA5l30RoeBtOV1hjZvPfFB8vLap5M8kmS4 wAxRt5I57GJIyV4mjtZ1Bcd2rkdrQWzq3ovGbWOS/UH6hsyHJ293if7X5xTYTzQ9qekC gRfDW3qHYNf7oW94od2+dmqrYUptswbRgxxZnQgNyZHwDsN+ynIe9MfkwISGr7BGvxsZ 3zG0l6aKehFZHFcKbu+3VKe/RR7S+so6JGXNwbNDZNqT6OHVt//6zX7yNsXQrEWhk+im aV38v68MIk71P42EZxh+xBSaBYQm6BWYTaYwzOV4LrH9SdFo3mA6rSupwWHP6cqjXu5T d48A== X-Forwarded-Encrypted: i=1; AJvYcCW5ItPHmXGNuV9GNlg33uPytJ/mLhL6m6gJlPjXdTnJpWZj/gcCMbPPr9Pfe4Fpec3+RYTKIQRCWgKQ4icMRxpRB8kGjkpO7yNGr4x7 X-Gm-Message-State: AOJu0Ywv7hIGTEwxRYHVyRLk8FhJsmen49RBjIbjfG7Y6nWHm3Hk3vet B0yipov7aRDom5tWR7iFapDuT8z6P2Daf9LIymFacMydAuighkxncsZT9fCx1RKXyhu/DJkk8Pc Qgf2bKRxVh7Y79OL8jD6wEYP6ghn3BjU+N1l+ag== X-Received: by 2002:a25:acdf:0:b0:dc7:4c92:16a3 with SMTP id x31-20020a25acdf000000b00dc74c9216a3mr1423519ybd.27.1709198807667; Thu, 29 Feb 2024 01:26:47 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240228-mbly-gpio-v2-0-3ba757474006@bootlin.com> <20240228-mbly-gpio-v2-10-3ba757474006@bootlin.com> In-Reply-To: <20240228-mbly-gpio-v2-10-3ba757474006@bootlin.com> From: Linus Walleij Date: Thu, 29 Feb 2024 10:26:36 +0100 Message-ID: Subject: Re: [PATCH v2 10/30] pinctrl: nomadik: minimise indentation in probe To: =?UTF-8?B?VGjDqW8gTGVicnVu?= Cc: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2024 at 12:28=E2=80=AFPM Th=C3=A9o Lebrun wrote: > nmk_pinctrl_probe() iterates over each GPIO block. Use an early > conditional continue to skip to the next iteration rather than indent > all the loop code block. > > Do not change code logic. The block is changed from: > > for (i =3D 0; i < NMK_MAX_BANKS; i++) { > x =3D of_parse_phandle(...); > if (x) { > ... do work ... > } > } > > To: > > for (i =3D 0; i < NMK_MAX_BANKS; i++) { > x =3D of_parse_phandle(...); > if (!x) > continue; > > ... do work ... > } > > Signed-off-by: Th=C3=A9o Lebrun Patch applied! Yours, Linus Walleij