Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1502rwl; Thu, 6 Apr 2023 13:44:00 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2ppRn0MzYWWjny1PdNVQX0dLTdAPhMJ/dsbOd8rnzJbsJHsxsaP4gotC8jtc/sfMivyWy X-Received: by 2002:a05:6a20:a8a2:b0:be:da1c:df65 with SMTP id ca34-20020a056a20a8a200b000beda1cdf65mr567785pzb.28.1680813839830; Thu, 06 Apr 2023 13:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813839; cv=none; d=google.com; s=arc-20160816; b=bayMXtaM62H3WfvUaqqOHWTyG5Z2p50MQePWDo/IrguI+wjdkjFNr9MZXUmYqXYODG kLARitPLc8E+IiWHuoATcMGi33x2OGby7WAc6Kej8u8iGL7fEOPqANJl6sQNrfYvb2ZP E/bXswLpWcyTcf15P81AvIfP4FKj7SC/dx1K7DtvynufAwFejDADZ/cXee7qNFFwqSmH pkEXXTBJ5azDlXLhh7gV/aS06bqX1ouEPxvjhHaIl7s8MTJ/2WHxknt4TAYZF2KzMygo vsH5WekTpt5tEBl5pDcOgS/wrxwvIC9mVe9b3GNynkPhWC9BRTEyKbif517xWo2bzMKD 259g== 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=qnvrTKbncrR0ULMLJvkPIIGzNzT6LpgoNU9PVajMmhE=; b=wLIpdADwZPCA1vKTJhmZLbByum95mKC3TpN0UEekZIZfRBkTTEJjB4CseSihJf/FcR 30exzlgyqaBeDmZ5wn5iNe6PCJU8SNk8SR6/2E5jixMavTdGxqh6/9Vd2fXICT0DQso9 9K3FuCsoSoTkETrD8tg1YGntCe75ZmCHxPY9/nHcS0upQ3sHN6TEHSZVKltey/TUMI6h vJ2ql2UIkHFwRBANKFU0lwOP0n58G6EVzzpW0bMRjDOSLorDgI4dSp2AsrRAz6La4X/k 09NHcf2NMAij2GYrx9hx7yLKQhO7gZfESpiHHDlRbQcMzEyedIFKmqvzQP045tIOArAP LZBQ== 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 f1-20020aa79d81000000b0062b90348411si2242101pfq.108.2023.04.06.13.43.48; Thu, 06 Apr 2023 13:43:59 -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 S240542AbjDFUnJ (ORCPT + 99 others); Thu, 6 Apr 2023 16:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240174AbjDFUmV (ORCPT ); Thu, 6 Apr 2023 16:42:21 -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 4AA8559D5; Thu, 6 Apr 2023 13:40:20 -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 B19E764C39; Thu, 6 Apr 2023 20:40:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E77C433EF; Thu, 6 Apr 2023 20:40:08 +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 59/68] hwmon: sparx5-temp: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:21 +0200 Message-Id: <20230406203821.3012402-10-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/sparx5-temp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sparx5-temp.c b/drivers/hwmon/sparx5-temp.c index 04fd8505e5d6..d640904939cd 100644 --- a/drivers/hwmon/sparx5-temp.c +++ b/drivers/hwmon/sparx5-temp.c @@ -86,7 +86,7 @@ static umode_t s5_is_visible(const void *_data, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *s5_info[] = { +static const struct hwmon_channel_info * const s5_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), NULL -- 2.34.1