Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2537rwl; Thu, 6 Apr 2023 13:45:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZG2s911mPvlYxIAI+rNACJLteBPtyLrS34qyTZx0tVksZDGxxbuFCfkZLmgHahQR22+wv7 X-Received: by 2002:a17:902:da81:b0:1a1:241a:9bd0 with SMTP id j1-20020a170902da8100b001a1241a9bd0mr7661538plx.5.1680813917361; Thu, 06 Apr 2023 13:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813917; cv=none; d=google.com; s=arc-20160816; b=t/9du5zhZE4LyY7MM1KMly13bEkZkLDfZTSq1uj9poBpIpN9Lk7WwPBB2stiBoAlt/ AbuEIDwR6jHwHQiu2XFw+aYPiPCN2ueq7B49tOwxO7Cr36JNJ/dM5ns2FVjA/mtprr4e fi7r/jEFx3yCMDqdpyBXeBYbx17ltE1/z1zcqDKM+5Mgu7Eyvh3vDpMQRYMoViv4OWrz GWkzeRz7zcen0TVGSQMdscD0JEidxiO/NfIbAQ4Cg3m77JW6216TWAJ9g8Imp7fXfvGu 8yV+dS7G79ElWwKrG2EZm1c1w3OOjyCaVxPUzEOwh+6tFI8a90OZzzZGmwa9MtqxBNkJ RWog== 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=YDdSmEzBeQIUwU+zT/yJP98Ao04cyNlrjQyHTjktwG0=; b=PJOGEfIGR1tSva65MAnEd2Mnm2kxsJJLVnQLiNnh89WXi0a63MNJxiJDbcHapd01WJ BN+nXgmWleBDzBzYWQE6GGk4nrX8bBBKR22bwiENpsF9+LS5W0GBGq5vzU81nnKyuyOp +Hyeoo7+F0XumDFtMELXCLfPNmo1xxP+GU9fLDebLusgH9dWlJ7jBi1/MAcvjM56pCIe PYecBFoDvFmf7G/kJYNR651hfSL4iQ0C3alIDVaLIO/deysLiE/K4FDpprgWAjJPxurs 72bgZgpHw8hzXRv8BURhPDecUFvlsytilwsHa8+TQZddF8hpWwBG31afx2D+CmAUfgg7 CqdQ== 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 m12-20020a170902bb8c00b001a0039e3597si249702pls.316.2023.04.06.13.45.05; Thu, 06 Apr 2023 13:45:17 -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 S240481AbjDFUog (ORCPT + 99 others); Thu, 6 Apr 2023 16:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240473AbjDFUoQ (ORCPT ); Thu, 6 Apr 2023 16:44:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E16B8D31A; Thu, 6 Apr 2023 13:41:38 -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 7364864C45; Thu, 6 Apr 2023 20:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C86CC4339E; Thu, 6 Apr 2023 20:41:27 +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 65/68] hwmon: tmp513: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:40:24 +0200 Message-Id: <20230406204027.3012532-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=-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/tmp513.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/tmp513.c b/drivers/hwmon/tmp513.c index 7d5f7441aceb..0693eaee054f 100644 --- a/drivers/hwmon/tmp513.c +++ b/drivers/hwmon/tmp513.c @@ -491,7 +491,7 @@ static umode_t tmp51x_is_visible(const void *_data, return 0; } -static const struct hwmon_channel_info *tmp51x_info[] = { +static const struct hwmon_channel_info * const tmp51x_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_CRIT | HWMON_T_CRIT_ALARM | HWMON_T_CRIT_HYST, -- 2.34.1