Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1869269rwl; Sat, 8 Apr 2023 03:41:20 -0700 (PDT) X-Google-Smtp-Source: AKy350YU04aV+Fj9L0AM6KXKPud2G/mf/reOROG+X1ZYtfYVZqw2AJT9bpbs1ItZv8exkhaDA1GB X-Received: by 2002:a17:902:9b95:b0:1a1:918e:4129 with SMTP id y21-20020a1709029b9500b001a1918e4129mr5348321plp.30.1680950479917; Sat, 08 Apr 2023 03:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680950479; cv=none; d=google.com; s=arc-20160816; b=T6qM/ECt03LT1ovd6a7n+3q+oLTVyuUz5kbqMXwLg7Xg6myIpHH/wfEPhWL8XWCxVq 0nqRM7EXotK2qfoZOgHPLox3bSuqveLkA51T/iKiMOcsLudpPiLto8CtrYRpB99ls4FN HrrA83+rJY+ByLEkLNEIcljY6Mwxg9ou9W1cQteHAwAHATP9CCUVD3ytva/aZ5mYYdKa /6gmc5NvHmXq+jhou8f/Ao1wI6TkHd3J/3Fosh/zjFZu8VWSliZtqDu27bQucPlXDlRz jfB1Eg8Bim/iiaXLZI07Oxf63kR3YIvaW1fSgmkoUIuX0B8Tlwo/FGKJg3PCZz5LQDVM Ej/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=atnnfYB8H/1cRTIRhOKd2CzwH9WdqCAcJhjKRDN3luY=; b=Ek0UCcXe98GA1phG76IaU0cQ8RX89vY9aPFvEHtTUf9raPdtZ0fcuIxSvBqOTl2djj sTONKnSSVS68/MhlWpB+c+Y25pGYBTNSNbNjLvyzRRptoFx8cOhMvEIgLC587ZN1OZtM H5PIWN6xob73VwF3xex2gV3ff68FCzNHNFYyhqbkwSR7fF3q6CFMgTMUOIyeR0qai9Pc jsgV4/OwnvvMpc5VUJ99Uoci9fEOmb66H0UkQBGnXlwSDWPl1wJ98kYVQApeUSx5VDnj lWEqsngjMEvnrXke52EQNtIMDQXExgn7EoD7cem+OBZJADN63jqmliik9gAjGCrsnj5O 2a4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protocubo.io header.s=google header.b=f36p8T3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=protocubo.io Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a63c048000000b005185d7599b1si300348pgi.44.2023.04.08.03.41.07; Sat, 08 Apr 2023 03:41:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protocubo.io header.s=google header.b=f36p8T3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=protocubo.io Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbjDHKfJ (ORCPT + 99 others); Sat, 8 Apr 2023 06:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbjDHKfI (ORCPT ); Sat, 8 Apr 2023 06:35:08 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39A84E41 for ; Sat, 8 Apr 2023 03:34:26 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id r17-20020a05683002f100b006a131458abfso20468691ote.2 for ; Sat, 08 Apr 2023 03:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protocubo.io; s=google; t=1680950013; x=1683542013; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=atnnfYB8H/1cRTIRhOKd2CzwH9WdqCAcJhjKRDN3luY=; b=f36p8T3+z/J6u/o8geXfldjzGTUKvuBwnCOq8aVhPB5Yq0scv4lu22t0IvydiWVBM7 CU08wz3QuGcIPb3yAdVhAgW3usOu6fLAX0B9dTUyF+DdJBVTJT8oOMZeeGHVuzEsk8U/ ACJmBPiPbyDgvFE4BNoYWI2q2/7yDxQ5j48C6PILBZX/SdxNHL3oqGlqu/dDTMUrJmJs 0bwnWui1/dIDcDI/PfO4ScpNdmG7VY3T6R/tIZlS7SRCQlputLk0u0J6wwKpSjlPmnKv U/RapLU0djwI0HQLlzVT8qQP9mV23Tbd/Y8AXD8hueIbuxcQessr9EfpsfZaTW/UQGCf bfxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680950013; x=1683542013; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=atnnfYB8H/1cRTIRhOKd2CzwH9WdqCAcJhjKRDN3luY=; b=cQJ5fHXqpLALtl8Rn3MZXxr7iY9650Eig+BjKKazd6ofL7YEeVRn0pVoeKWR5Mc9DT oK7mmz2bZcmkF5rb3aRu9+7Rim189iXPPyPa77e1K4FjrdXyw53tk5A4uXZAXo7R7zFH EnsaDbCR7/WOQRiXsEt6KpDb//QGuEPVitZa/KRb0sc1vIxGXho+ErqxfIQMU5Djl18J yE3k6Gr9tFNOyr1IdNIPdg//+H6zOJxmXLngt5rjAWZhzRZLmAkx2gG+eZLgXmWW57/Q HpWwk6uPQ/h+gZvCGpzVHoV/RM5XV4h8YBDkx1tueveo9mmqiIbR4AkRYvevQsZL4hwB f44Q== X-Gm-Message-State: AAQBX9chJr6wAoawXDtUaAATfA+MHkDvnPmiMQjpG/v4Ri4HwYrh+3s3 83LJrPHsPU08EafDiQKmZqPSQA== X-Received: by 2002:a05:6830:101:b0:6a1:7f69:ffbf with SMTP id i1-20020a056830010100b006a17f69ffbfmr2146604otp.36.1680950013453; Sat, 08 Apr 2023 03:33:33 -0700 (PDT) Received: from calvin.localdomain ([2804:14d:5c5e:5d5b::1000]) by smtp.gmail.com with ESMTPSA id m14-20020a9d6ace000000b0068bcf7995aesm2442533otq.64.2023.04.08.03.33.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Apr 2023 03:33:32 -0700 (PDT) Date: Sat, 8 Apr 2023 07:33:20 -0300 From: Jonas Malaco To: Aleksandr Mezin Cc: Krzysztof Kozlowski , Jean Delvare , Guenter Roeck , Jonathan Corbet , Oded Gabbay , Michael Hennerich , Aleksa Savic , Jack Doan , Nuno =?utf-8?B?U8Oh?= , Marius Zachmann , Wilken Gottwalt , Pali =?utf-8?B?Um9ow6Fy?= , Jean-Marie Verdun , Nick Hawkins , Xu Yilun , Tom Rix , Clemens Ladisch , Rudolf Marek , Charles Keepax , Richard Fitzgerald , Ibrahim Tilki , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Derek John Clark , =?utf-8?Q?Joaqu=C3=ADn_Ignacio_Aramend=C3=ADa?= , Iwona Winiarska , Florian Fainelli , Broadcom internal kernel review list , Hans de Goede , Michael Walle , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Agathe Porte , Eric Tremblay , Robert Marko , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, patches@opensource.cirrus.com, openbmc@lists.ozlabs.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 48/68] hwmon: nzxt: constify pointers to hwmon_channel_info Message-ID: References: <20230406203103.3011503-1-krzysztof.kozlowski@linaro.org> <20230406203530.3012191-7-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 08, 2023 at 06:14:19AM +0300, Aleksandr Mezin wrote: > On Thu, Apr 6, 2023 at 11:37 PM Krzysztof Kozlowski > wrote: > > -static const struct hwmon_channel_info *nzxt_smart2_channel_info[] = { > > +static const struct hwmon_channel_info * const nzxt_smart2_channel_info[] = { > > In the rest of nzxt-smart2.c there are spaces only before "*", not on > both sides (and there are a few "*const" already). Would be nice to > keep it consistent. The same seems to be true for nzxt-kraken2.c > (although I'm not a maintainer) While I don't have a strong preference for either `* const` or `*const`, it would be prefereable to use a single style in any given file. As the kernel seems to favor the former style: $ rg -F '*const ' | wc -l 2593 $ rg -F '* const ' | wc -l 15359 it would be better to change the other two locations in nzxt-kraken2.c to also use `* const`.