Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2815136rwl; Sun, 9 Apr 2023 01:46:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aba6uBAj7+a2j2+L+jdiC8kGnUs7mXjMPtbuDTqLiQxDd4fhiYdtfdHlHrXT3t2+s6ekbt X-Received: by 2002:aa7:c595:0:b0:504:921b:825 with SMTP id g21-20020aa7c595000000b00504921b0825mr2550506edq.36.1681030016031; Sun, 09 Apr 2023 01:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681030016; cv=none; d=google.com; s=arc-20160816; b=pLAAiTJOtLcYe1djLGjkdInzeZuKxmbVl1n5qIb9/tm3uEXi2rzhq0m8ZAWHegZDkj S5nr6/qjylwBq4K7rwX0q7QeLLkBatq+E65H620x0ijJF/+c3ZoED3CmLnUzgip80Iey 4PUXHdqYDr69TCWCGwmd48tvRoB1NzW4CQLQN20rwJRQCPwtPFudt+fsTEYsZAT3VFvX u2Ajzj/IhSrTFjW5cJytujZ2jtkNzHoHIAfq0B35aDqdBWVKzghER4GvrEr17B2PuhCe 8AVkwgWNJb5EfsEx4EltFKHal7lXrlCzzeq1HUvpJlguHv872k6oX3dSJilUDsZuuFrE aicA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=cOQ2YlsrAJ8fU28kz/t8F5ldbmOn48+3DLP1eo2Uq2M=; b=aPKDMR9oPQwYj/iSvh1yZKQsARAs4mUnzSReo4qm6cxOeaHljqTbFbKyW54xrtYR1K Ji6Qh86G7fpbbk2aPaSs/c+HiSAbbhdG5o/WIehDEsWVyhJiDQQ0eGfOUomEAoI44j1P RK4lwYg7oRqp/VUqyQLAd9dG/oyGEddu4AZ3Zt0POGFa3kArGgYn1f8RloLFXTr8S49n gumugEqG+QN/sLFM02+4ap1hFlIYOmw+71UmFyJjPqVQLo69M/vxd5HCi0ofhvUNiAA5 f5N89jIsSpsDQymsq4ARVIJkbWm1WWPguUz0HBqyqwT7LjRi3W+U37UUsn/n0cqBembR 6CqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=Caf1SSvg; 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=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l23-20020aa7c317000000b005048b964ed4si3199928edq.562.2023.04.09.01.46.31; Sun, 09 Apr 2023 01:46:56 -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=@posteo.net header.s=2017 header.b=Caf1SSvg; 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=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229530AbjDIIVi (ORCPT + 99 others); Sun, 9 Apr 2023 04:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjDIIVg (ORCPT ); Sun, 9 Apr 2023 04:21:36 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D35445B83 for ; Sun, 9 Apr 2023 01:21:32 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E23B324010B for ; Sun, 9 Apr 2023 10:21:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681028489; bh=GCmo/FQZEbl3ShLJvIwU3fxDcrVQZl3kl6EFP8KaIFc=; h=Date:From:To:Cc:Subject:From; b=Caf1SSvgMuXeYpAY5NXoJcSW/DiduWlRF7Bm5M8X3AE3VK+hU3Ib3EZYWatrGRd9d hU0/cOD7ET8SMU2+DLk17dFFzv1hrUfgy0Bax1G+hqhb9tCYqW0Pbpj/3ALnAZEtBq B1V0jf2KyKj1suPHOS1nmHTyGFys4XOZB6L6oAqouycgkMElq1TeRmuFRiVd/sWHsP x0JVTTDepAAX2XyI0JMlZ6fsVIFC1hh0O2lw9e/P6nV9KUNC3NpEBZ85PtaXqPU1nr rx+KvREciQJ3SSOD5AoBMnPsDx4f1p1ajoU5JpiE1wRXhTtiT87pqoAJrNpnl0DsQU sqQQk9gm7S7rw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PvQ6k2vpXz6tvw; Sun, 9 Apr 2023 10:21:18 +0200 (CEST) Date: Sun, 9 Apr 2023 08:21:17 +0000 From: Wilken Gottwalt To: Krzysztof Kozlowski Cc: Jean Delvare , Guenter Roeck , Jonathan Corbet , Oded Gabbay , Michael Hennerich , Aleksa Savic , Jack Doan , Nuno =?ISO-8859-1?Q?S=E1?= , Marius Zachmann , Pali =?ISO-8859-1?Q?Roh=E1r?= , 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 , Jonas Malaco , Aleksandr Mezin , Derek John Clark , =?ISO-8859-1?Q?Joaqu=EDn?= Ignacio =?ISO-8859-1?Q?Aramend=EDa?= , 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 , Luka Perkov , 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 12/68] hwmon: corsair: constify pointers to hwmon_channel_info Message-ID: <20230409102117.6fcdc42f@posteo.net> In-Reply-To: <20230406203103.3011503-13-krzysztof.kozlowski@linaro.org> References: <20230406203103.3011503-1-krzysztof.kozlowski@linaro.org> <20230406203103.3011503-13-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2, 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 Thu, 6 Apr 2023 22:30:07 +0200 Krzysztof Kozlowski wrote: > diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c > index 2210aa62e3d0..dc24c566d08b 100644 > --- a/drivers/hwmon/corsair-psu.c > +++ b/drivers/hwmon/corsair-psu.c > @@ -571,7 +571,7 @@ static const struct hwmon_ops corsairpsu_hwmon_ops = { > .read_string = corsairpsu_hwmon_ops_read_string, > }; > > -static const struct hwmon_channel_info *corsairpsu_info[] = { > +static const struct hwmon_channel_info * const corsairpsu_info[] = { > HWMON_CHANNEL_INFO(chip, > HWMON_C_REGISTER_TZ), > HWMON_CHANNEL_INFO(temp, Wait a minute. Can you at least match it to the coding style of the driver? A lot of work went into it to keep it consistent. greetings, Will