Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1607745pxb; Thu, 4 Mar 2021 16:12:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz73Six7+WHQY+5Srvd37/4lOHzl7PGVM36gtjr8/0vJaEDRC+F77RONgBqYjWHrTO6re6f X-Received: by 2002:a5d:9418:: with SMTP id v24mr5725863ion.61.1614903141835; Thu, 04 Mar 2021 16:12:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614903141; cv=none; d=google.com; s=arc-20160816; b=SY0xvbywTlvGMR7EbUyCbXMfsn0ZkiFQpUd+ZTSq+FkMAGIsn/TxfuWrGoTtLDubU8 b3ZKrc6pFtld+qZfeo8TPAkLO6F/lmF3QmhRzkt4ef/sDBzi+4BgdTT9/lAmSWHmXTnh 9mv3ekcGBB84g/kEdJxpmXndFBdpm8BLRksAKRWjnrh/NmPVOwmbR5xf84MJ9KEZzDto AzEcDoyCUNhyiCews6FRWzJZVhjks2uGcoynEpStPASdoamY7jZVIezX/qTk5thWKCth nFllyiaktGeF2uAG4pvTL+VIYXSaGL1wVXwrACnFzQ+98ien/bTORVt1p7IkZq3aK4Wl HUzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=PgBypGec0QPYi6JphgaCfdVk4wLn5d7wrsbThrQwuv8=; b=zLa5PYrQxld+k3wO+lmVk70hRfI9kF0jcQtIHOMtd0j9gl81wtjFko3V4oYhocO7uF rISPENQT2NOPnWS1oBsUPRzM3kQuRURp3j41Ic84kmK/GYVqR7nXeVX9PJRNWFaeec7P gev5yviHdqasyn1Y7BYRKwc26poGGRUPDH4FQU2ogheaky7Jh4ZN1bI0uBnOeohbzLin Yp6Ch0frUz+aWUcWhWelnk7HVyzxqfMVBrxWrltgUCyJcr1VgcJEmwbklUPPibFlallE Kq+blxyvHAbEkD+g1QrsSAUfK2iEfY7/3njQ928ORwVBptFJ7dDaAZfwVULpbdMGoqUq 6VVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=srSwV4sl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si700614ilu.130.2021.03.04.16.12.07; Thu, 04 Mar 2021 16:12:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=srSwV4sl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240529AbhCDMZy (ORCPT + 99 others); Thu, 4 Mar 2021 07:25:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240530AbhCDMZo (ORCPT ); Thu, 4 Mar 2021 07:25:44 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D95CC061574; Thu, 4 Mar 2021 04:25:03 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id n22so7869617wmc.2; Thu, 04 Mar 2021 04:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PgBypGec0QPYi6JphgaCfdVk4wLn5d7wrsbThrQwuv8=; b=srSwV4slc9dWu5YeW5DVJ0DJ5In2J3h6cT/4etg1vJDs+PZWGKHuRCc1KhzlFZ4nsQ DjLegxhubrRpKiuit0K8aDB/o+rokh+h/4BF96x5BDg6J5T12Secpe0osN6xSfJRTLRU R9ENJMqV4JPmDUveBv0Rx3oa7ZhOhrpA/PaP/pTUJ1laTeHbX0tRq4pSArff3zuWQ2LI WxjM9EyMfgSdXEcy2w4O9dP1iEaipquQ0501tQRd3aeuib4K7hmkb2lInp2L0lEKsF0f p2HZv573YVhpeELCTAeVd7snoUuHdblczgLcxhx/rjemP+brzNZQW2bz4edL20bfEv++ g6dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PgBypGec0QPYi6JphgaCfdVk4wLn5d7wrsbThrQwuv8=; b=bZJ+4PSRr9Q10DkbH9hdEVKx3GbVP7dQxtUNhoKznR9I7uw0rpqmtLeCwlTLDTU9fM t6KBHtvjXJqNzPM90Q/yMzc/7VKlFIKK4RoIHcwzVs/cSPaZjrRyz4DMnKu1YmCreWwv i5x2VuwggIKS3EBOWrSHuRXeATMP0UUyLo14iI+aBNAIWb/blLPVe2tdbfiqzeEWh28A bS/t4d2C0zLlLHAdpigvMLmbfEpA7zfakQJ6hC1O2wiRQZou7QxmT5ZAJ9hBA9HLmUzs JFHDIhXcITZgRSiU0yr1lOFNATthrA7B2y3Sad9Ok/O/eaWIeSFzvgJYfY7oTpL6t4Af WOMQ== X-Gm-Message-State: AOAM532/pSZ+scHlvknjARwhWQFE+S5PI7j61ePf2Bud+E5yms5BehIe CCNVawTZr/6/+OnTRzeNln4= X-Received: by 2002:a7b:cbcd:: with SMTP id n13mr3686192wmi.112.1614860702342; Thu, 04 Mar 2021 04:25:02 -0800 (PST) Received: from macbook-pro-alvaro.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id i26sm2321015wmb.18.2021.03.04.04.25.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Mar 2021 04:25:01 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH v4 05/15] pinctrl: add a pincontrol driver for BCM6328 From: =?utf-8?Q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= In-Reply-To: Date: Thu, 4 Mar 2021 13:25:01 +0100 Cc: Linus Walleij , Rob Herring , Michael Walle , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list , Jonas Gorski , Necip Fazil Yildiran , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , linux-arm Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210304085710.7128-1-noltari@gmail.com> <20210304085710.7128-6-noltari@gmail.com> To: Andy Shevchenko X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > El 4 mar 2021, a las 13:12, Andy Shevchenko = escribi=C3=B3: >=20 > On Thu, Mar 4, 2021 at 1:13 PM =C3=81lvaro Fern=C3=A1ndez Rojas = wrote: >>> El 4 mar 2021, a las 11:49, Andy Shevchenko = escribi=C3=B3: >>> On Thu, Mar 4, 2021 at 10:57 AM =C3=81lvaro Fern=C3=A1ndez Rojas >>> wrote: >=20 > ... >=20 >>>> + static const unsigned int bcm6328_mux[] =3D { >>>> + BCM6328_MUX_LO_REG, >>>> + BCM6328_MUX_HI_REG, >>>=20 >>>> + BCM6328_MUX_OTHER_REG >>>=20 >>> When it's not terminator add a comma, otherwise remove a comma. >=20 >> =E2=80=A6 so you want me to add a comma or not? >=20 > Hmm... you tell me! If this is a list which covers all possible cases > _and_ the last one is the kinda maximum value (aka terminator), then > comma is not needed, otherwise add it (to me feels like the latter > should be done here). Well=E2=80=A6 Then it shouldn=E2=80=99t be needed, since this is a list = which covers all possible cases and the last one is a terminator. >=20 >>> Also, why is it inside a function? It's anyway global and constant. >>=20 >> Because this is only used by this function and I=E2=80=99m used to = doing this to comply with MISRA C 2004 at work :) >=20 > It makes code a bit harder to read. Ok, I will make it global in the next version. >=20 >>>> + }; >=20 > --=20 > With Best Regards, > Andy Shevchenko