Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp18496rwf; Thu, 6 Apr 2023 13:41:43 -0700 (PDT) X-Google-Smtp-Source: AKy350YVOZYA4t5R/qvjnWAo/Sdbu1VypDvphB4i81DgLrcLXUC0Lskqygn6CQcg6UPzAx3bgT/x X-Received: by 2002:a17:906:2ccc:b0:931:baf:259 with SMTP id r12-20020a1709062ccc00b009310baf0259mr128908ejr.63.1680813703147; Thu, 06 Apr 2023 13:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813703; cv=none; d=google.com; s=arc-20160816; b=EQRTZSQ215Qzva90zkhQckS/UMX09QFrjOA3/P++SD/3ryy6M06gCRc2C6Eeczdyv8 a0KKQKaXjcpK8F3351Qk6nwiAXWS9xCcGGzlOC0n6UzVG5yMXKWxSNj7IlAkdcJhdboX BdOjOK1siFJ4Zzlpd9/7K3uc1Nhn3RTXnBkmStoWyHndXUdP5ZRjzK8V/GT0f/4Di0tc FgbK0V6WP8wGKiJzhpS24NF9r8JX/P+K3wnVWQ3f7qNdIUKWd5Q+bNFjQSNXnQT2Leay kDhk/PXcLpNw6mPDRvqhs8bTkl2AqyCKYHvPiZsPeOiRDHgPHtJfuAU3JzvF6ugJUmBY kxQA== 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=KmSe0ur9O8Bt4HhHrQ2fsEt5QtpiRD/+42ue1TL/ut0=; b=NBu8YZLInnzlh+68UTxgdUx3cv7/SXDpkOWCmqKXhfn6FeWujsao2FLH8Itbow2qc6 LkJOxJGDtHltj9Lq6CY9SIIbTWWrdCP0DzczEYBVyLZudhlYdnh7jN9vLNNsK3QCPV10 J5TY3qdJvp4CZJqKz5rsO08qnBjcMpDLZXgA5hKtoSREd+eUEqFMcrCcuQo4fyKPrhdY BR/PYDPP+4xGXk+M4o/h4oK+17YvoQ6gMB/4pJ1mBQpiYKRmRx5vOegIDGH7c6FCQucI mz4pI9e9678NPVyfse4vYgGYH73CUzptU27XeMlvbViRvZ9Rnb4JIvOEM24fS81xY8Pe 4NYg== 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 o25-20020a170906289900b0093defbd6274si1770159ejd.1019.2023.04.06.13.40.56; Thu, 06 Apr 2023 13:41:43 -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 S239471AbjDFUki (ORCPT + 99 others); Thu, 6 Apr 2023 16:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240574AbjDFUkQ (ORCPT ); Thu, 6 Apr 2023 16:40:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70B5A12861; Thu, 6 Apr 2023 13:36:09 -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 6255E644AD; Thu, 6 Apr 2023 20:35:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C716C433D2; Thu, 6 Apr 2023 20:35:33 +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 42/68] hwmon: mc34vr500: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:23 +0200 Message-Id: <20230406203530.3012191-1-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/mc34vr500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/mc34vr500.c b/drivers/hwmon/mc34vr500.c index 6268e973049c..6a7a950a9332 100644 --- a/drivers/hwmon/mc34vr500.c +++ b/drivers/hwmon/mc34vr500.c @@ -138,7 +138,7 @@ static int mc34vr500_read(struct device *dev, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *mc34vr500_info[] = { +static const struct hwmon_channel_info * const mc34vr500_info[] = { HWMON_CHANNEL_INFO(in, HWMON_I_MIN_ALARM), HWMON_CHANNEL_INFO(temp, HWMON_T_MAX_ALARM | HWMON_T_CRIT_ALARM | HWMON_T_EMERGENCY_ALARM), -- 2.34.1