Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp18651rwf; Thu, 6 Apr 2023 13:41:54 -0700 (PDT) X-Google-Smtp-Source: AKy350akBxVkpLQp36BQVlgfjspaMR6X3bhOwLiVv7PHfSAn0KOrHe9WmtarK/iTek8fc8APPUlN X-Received: by 2002:a17:903:124a:b0:1a1:dd00:b4d9 with SMTP id u10-20020a170903124a00b001a1dd00b4d9mr188299plh.46.1680813713957; Thu, 06 Apr 2023 13:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813713; cv=none; d=google.com; s=arc-20160816; b=BAGpA2w/irPF+udFfcEtK9KwBknoFaLIU+gmzlvUuKEUy4rdg6y50/0jti9GNw8886 bpId8v2udTHkbsPUlu7sRvHMBcIoNfxNuiqB7T8CB5tpdKZe0chVa3Duao4+WZimXoH+ rLQLvI2c8zEnxaQhICSgOQ5orGBaZeRgH6R52A3pdlo8KXPo4K85p1tCKAEJu6/1KT9u Px6FEtqyNIAbMNOYCq2+5Ps6gTEBrK5gU3wd99esO25uBvKv0gLSOxA2vA7fCDj7+Npc G0hHsoDbdPa274DVPkuJ0bjcF0VncIY9FUBVjRsOZmaSB2rClIuB4eu4eKpVQZYJApLb M3jw== 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=oNA7T4pza4TDTx5QMtSp/G6Cbp0Mry2dfxspRN5PFW4=; b=PiOtFZPladla2rPi8Z/Pe2hP/BxABdGbCr781I39RjNnM59p7KgL+nr6zV5naAMTA6 Sgt2SOMrtUPpUuvXLbITULT8Qfhd27mWka3Ab9Jc1Viqds6rqg1V7nr1YA1z0OgH190l cWqbIHfXFoB5GXJirzmObhuUke/i1EQEhW1ucSJkx3T0/m/SbhXAtnRB8fApPgqP5BI9 zPHuaxMfj8eQp0eRkN7acAnXFeqxAJJ+kopXZbZc8vJhSRu0aFvwnCMQtkQguYry1J+M nGSWPufOSedmU5Mcs5nnm9CxnD86bqdhQWtO0A2oiAwYVWCtchADawmjMSXmUx22zeMn RInQ== 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 w191-20020a6382c8000000b005006397721fsi1948346pgd.859.2023.04.06.13.41.40; Thu, 06 Apr 2023 13:41:53 -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 S240240AbjDFUlS (ORCPT + 99 others); Thu, 6 Apr 2023 16:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240239AbjDFUkz (ORCPT ); Thu, 6 Apr 2023 16:40:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C670D53A; Thu, 6 Apr 2023 13:36:52 -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 0E49B644AD; Thu, 6 Apr 2023 20:36:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61FA7C433D2; Thu, 6 Apr 2023 20:36:40 +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 45/68] hwmon: nct7904: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:26 +0200 Message-Id: <20230406203530.3012191-4-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=-2.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,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/nct7904.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/nct7904.c b/drivers/hwmon/nct7904.c index ecc5db0011a3..007bae4c7028 100644 --- a/drivers/hwmon/nct7904.c +++ b/drivers/hwmon/nct7904.c @@ -803,7 +803,7 @@ static int nct7904_detect(struct i2c_client *client, return 0; } -static const struct hwmon_channel_info *nct7904_info[] = { +static const struct hwmon_channel_info * const nct7904_info[] = { HWMON_CHANNEL_INFO(in, /* dummy, skipped in is_visible */ HWMON_I_INPUT | HWMON_I_MIN | HWMON_I_MAX | -- 2.34.1