Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp18851rwf; Thu, 6 Apr 2023 13:42:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZAFpzWS76KfDqdfsC4CLgHXdJc/8UmWBhXiOnQfOAGaTLcU/RKdoOJg6b5+EjaYMoh3Alq X-Received: by 2002:a17:903:2301:b0:1a0:7584:f468 with SMTP id d1-20020a170903230100b001a07584f468mr648443plh.0.1680813729026; Thu, 06 Apr 2023 13:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813729; cv=none; d=google.com; s=arc-20160816; b=wfSog9nQyFQLQOdLlHZbqOUW4iHfu8aLTURMSrpSTyNJF8X2nylxSi0dqR2IAA24+Z s7gtVXe5olSa18D2MDSsaRZuATllTuXoQ+jNd20HUjKAVRXt0mrQLVY/HZna9nGPuLL9 aJVCxahC44ScX3bf3IU7mbgiviJhAYZlf1B5jWV3K/hDD9IMp5XvF1BQ0ITYoOPJAjwh +JYIQ+KAfuqU/gJJB9p6EXFAXyR2nMnNqrRtF3iY9E6irPn9q8oVVHIqIPneLY2hfd5A +JQnTWSlgz4JCk8Z8QDYCj/igO/ykuLEa/OQLXuFq42LNnH0yNcPmiLzQ+A8lE6SBFa0 sciA== 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=O3MOyyEKTcIcfvwmGvPKQfvxfdZynPda5da0LOn8XX0=; b=fYQSg/Wo3n8Lh/5W33DqOnOrQVdMN1tvLeyLt0h5aCRNseyeneJAMtDZTv543K6omy GHFUubpzNO1ZmZ8xuFIlaBiegkGhm2OLctlPFIBkb776PyUVlSAh23+8I71xlHFDsQc2 deVBRJLiJ63fdTkBIiz28H6bPDCJ/49Brf/enVDyvGJXKidBXfgv5xmhve++oswFXa7Q e0QKF/h2mi/e64AGyP2IIj3PFzD7QaMT8C1GZVVFWMnHeSrymdtsJlfIAQ/STDlciGY9 65lsZdaK3AKNJgOvG262GznPQybMyEQbfjuXuKs6C1npILfedxinw1haF8tSj4PMTb54 7IjA== 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 o3-20020a170902d4c300b0019a71e14c19si2539464plg.320.2023.04.06.13.41.56; Thu, 06 Apr 2023 13:42:09 -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 S240340AbjDFUlk (ORCPT + 99 others); Thu, 6 Apr 2023 16:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239934AbjDFUlL (ORCPT ); Thu, 6 Apr 2023 16:41:11 -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 428A2AF37; Thu, 6 Apr 2023 13:37:15 -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 D06DC6451A; Thu, 6 Apr 2023 20:37:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C2A6C4339E; Thu, 6 Apr 2023 20:37:03 +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 47/68] hwmon: ntc_thermistor: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:28 +0200 Message-Id: <20230406203530.3012191-6-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/ntc_thermistor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c index 9c9e9f4ccb9e..ef75b63f5894 100644 --- a/drivers/hwmon/ntc_thermistor.c +++ b/drivers/hwmon/ntc_thermistor.c @@ -546,7 +546,7 @@ static umode_t ntc_is_visible(const void *data, enum hwmon_sensor_types type, return 0; } -static const struct hwmon_channel_info *ntc_info[] = { +static const struct hwmon_channel_info * const ntc_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_TYPE), NULL -- 2.34.1