Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp51rwl; Thu, 6 Apr 2023 13:42:20 -0700 (PDT) X-Google-Smtp-Source: AKy350apRQ+4CaldmNY7/axlHwSlz+mRQWkE7wipgWHTXzgb87MuwyCwrnbVxtxeVtNJCUtxXwQg X-Received: by 2002:a17:90b:2250:b0:237:d59d:5f89 with SMTP id hk16-20020a17090b225000b00237d59d5f89mr12657366pjb.4.1680813739930; Thu, 06 Apr 2023 13:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813739; cv=none; d=google.com; s=arc-20160816; b=qmfQfN7L6Jh5Bd7zEOgcAThfP8erk1nKrGiN+KeG7ljnSKAoPe2hx8Deg/xrvPNr4U /aTQkxiKsN1lcvPcAxr/ofeyxTSD5m2OaRBmDmFZesVALYdHniy6zBk/WpQ8lR0HvNNc sXxEEMPBmy63cyLoTJA7fCPh1yLTzXxNdKDdjotZHCs30FB1zLWjBs3/sn24PJGBMoAI GGt2Kh1LUvZNIujlI9g0UFeuV0SO/Zp/TvnQ/NKXd57pDu5KBybo9Ld+OBZdY9TTje2V Di8aBeTDLad1l1UDOX0JaeUui8XFNOS93dOmP2nuKOOlrKGvTpgMAaZHoW5svjABYpAA 0NMg== 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:date:subject:cc:to:from; bh=8uBHLKaZ/uJYaNSiIEItEmBSI/TMvhxpB1u3m3wL1Yw=; b=iaiEwSaNgfW91vEzN1rEdveRTQE2r49awTkuLbOE3P6KLxFhc3zjY/HyEx40gQ+8He /dCmf8ihyLANA6KTACKnS1SwQb6Npo146kHqjij8mWlxon7qQqrP4mcD4erAf8fMYilT y9gIZmqh1xhIYz6Z/ezqB2yCbevsPbdpw1ZWOxV+HA0xfwDJgjDtA4tzxgINHUTMNAEj ZFML6CxfL6TBwRjxmzYSwUi56Q1jgCKACWJWFACp5xBAvAKzZZh9FT7Eu/KefmTjdPid jBuiq0BHMAbtRnHR59QHmy0VtPsrW9jHpmeKOfw3a3YSmSs/l8MZMVBJn580ts5+IXYj b61A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a17090a938100b00244883db2c7si2932003pjo.99.2023.04.06.13.42.07; Thu, 06 Apr 2023 13:42: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240041AbjDFUlm (ORCPT + 99 others); Thu, 6 Apr 2023 16:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240004AbjDFUlN (ORCPT ); Thu, 6 Apr 2023 16:41:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C7CB449; Thu, 6 Apr 2023 13:37:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 70B5963F57; Thu, 6 Apr 2023 20:37:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6DAEC4339C; Thu, 6 Apr 2023 20:37:14 +0000 (UTC) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Oded Gabbay , Michael Hennerich , Aleksa Savic , Jack Doan , =?UTF-8?q?Nuno=20S=C3=A1?= , Marius Zachmann , Wilken Gottwalt , =?UTF-8?q?Pali=20Roh=C3=A1r?= , 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 , =?UTF-8?q?Joaqu=C3=ADn=20Ignacio=20Aramend=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 Cc: Krzysztof Kozlowski Subject: [PATCH 48/68] hwmon: nzxt: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:29 +0200 Message-Id: <20230406203530.3012191-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230406203103.3011503-1-krzysztof.kozlowski@linaro.org> References: <20230406203103.3011503-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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 Statically allocated array of pointed to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/nzxt-kraken2.c | 2 +- drivers/hwmon/nzxt-smart2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/nzxt-kraken2.c b/drivers/hwmon/nzxt-kraken2.c index 89f7ea4f42d4..428c77b5fce5 100644 --- a/drivers/hwmon/nzxt-kraken2.c +++ b/drivers/hwmon/nzxt-kraken2.c @@ -86,7 +86,7 @@ static const struct hwmon_ops kraken2_hwmon_ops = { .read_string = kraken2_read_string, }; -static const struct hwmon_channel_info *kraken2_info[] = { +static const struct hwmon_channel_info * const kraken2_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_LABEL), HWMON_CHANNEL_INFO(fan, diff --git a/drivers/hwmon/nzxt-smart2.c b/drivers/hwmon/nzxt-smart2.c index e5edf8071f39..7aa586eb74be 100644 --- a/drivers/hwmon/nzxt-smart2.c +++ b/drivers/hwmon/nzxt-smart2.c @@ -663,7 +663,7 @@ static const struct hwmon_ops nzxt_smart2_hwmon_ops = { .write = nzxt_smart2_hwmon_write, }; -static const struct hwmon_channel_info *nzxt_smart2_channel_info[] = { +static const struct hwmon_channel_info * const nzxt_smart2_channel_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_LABEL, HWMON_F_INPUT | HWMON_F_LABEL, HWMON_F_INPUT | HWMON_F_LABEL), -- 2.34.1