Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp83254rwl; Thu, 6 Apr 2023 13:35:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YZrZf9Cb7R4lCyGNw6XaKXo3DJFTsqAYRMLsWjNPYbpSwydxGB4oNaJ/X5H2+g02TOa1TU X-Received: by 2002:aa7:c787:0:b0:4fc:709f:7abd with SMTP id n7-20020aa7c787000000b004fc709f7abdmr900531eds.2.1680813309935; Thu, 06 Apr 2023 13:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813309; cv=none; d=google.com; s=arc-20160816; b=vMjrx5eEr9/ottwFCeI/l4GtwiNPbFBEdPLYV4Kkp8c/WmSq0guRklgQuCkGTuQMPG sS0P2YbafJ4yrA/+mTEXmNxM7v3/6ZgKfsrxL0Ed6PQaEfEZwYHQ/vIoYYvF/oC7jSLS oa5v8PIXSv4LehGiZZls1OlRAwiNm9+EwXpDh+5Y4cwK97YS7BnpcfkLjXCdKBUiEykC Mn6xFKejZtK+wOYaXfAAIOpp5vLCzBvDf9mCqw1vz2+eshxxjbQlTjNq5R7yYr9huZGg GMnKVd+57n3leD6HS1z1l4QotmkU5a3TUOc1e3uzEhjMGo4DImHhkoj/hCER2e03/jm4 NvbA== 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 :dkim-signature; bh=wGgSmDun0Ka3ENM2dsOo9c+VSxguejpVGHkMFXaCcqA=; b=g6HTT1BZ5c8v326GaP4t0dW3vEPYgZQg/5DY87AS2VGK5KiUXcLxPIRmn0mg0l8PAa iceOlCaHlWIHeSpHhg+5MwwRoB/FyX1Ai6YnSfs152VwT0DDkfIHv8i1XA1ZFSey8oki jaUHC1wrrR74ZsIXGkDlaiXOa2R6DeaOrwt071k/6fvJpuHo42/+5etGsDNujGsGKWXE XkobRKnZ0Mbpwnr+IJS22iZE9DbI2HQfANT16F7NLhDWEMESXRXMjrXUpj+DzU/ZEGLz kXEG3n4mxIDrvEfcize7n8SSqFWWKBw1Lq0gn7foeoy/YE2l1nnlJXlusmH4AMlL1Dj4 PpoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MUiM7bgl; 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=pass (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 c11-20020aa7df0b000000b004fd228408c9si1688963edy.222.2023.04.06.13.34.43; Thu, 06 Apr 2023 13:35: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; dkim=pass header.i=@linaro.org header.s=google header.b=MUiM7bgl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240023AbjDFUeB (ORCPT + 99 others); Thu, 6 Apr 2023 16:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239444AbjDFUdV (ORCPT ); Thu, 6 Apr 2023 16:33:21 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1572C150 for ; Thu, 6 Apr 2023 13:32:19 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id lj25so4211515ejb.11 for ; Thu, 06 Apr 2023 13:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wGgSmDun0Ka3ENM2dsOo9c+VSxguejpVGHkMFXaCcqA=; b=MUiM7bglLZqVCKsBSwDDkMv7LvSjNxNCs/0PTUXNkcKvc9liGgPLm0ici6sWKV2qbd 1WfkT8pkPiJWIF8+y11XHFB85qJsSg/9Za0u52IOA8PMRfIXrdhmruMPOGQeLxKfOnGY KbsWXZWnx65MO2+JBIbf0gLFPP/KC/pdmDTtOW7BdurQXCwUqfAbdE0AuL4G8EMH7kEI VuRR+7aK1iAecpo7/aw8apuAP8dPPCiGerws0AaqVAI+dYO6wYL/e+77HRWf65pNHD34 6VBeP7MW/IyFucHwruF95DP0b2Y8kBXeT7SlQcetnLF/I/+rcMXPng5TAIsPziZiOmqc 4uyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wGgSmDun0Ka3ENM2dsOo9c+VSxguejpVGHkMFXaCcqA=; b=m6MDExfl1mnvAuzsHtirCzPKf9NUj8NAnATvmMYokP9EJ8RVlj6NNrOjcRi35DIlRy T1zXAO6MJsjEJWprPZql+GHNmaRdFb0O42umksoN6QkSr245KvA/ExELtBcQjfwrGaJl 0Qq10hsRX7UboBr49Ul/T9UGcLhDQ0u0ZtHdBew0yvH6JVvlvpxNei+diuV2rbRUnwhZ FkPTImv+n/FRGPv6vikIxrrIf6JmYZirl05Zirn5eBYouJcFLXW+whhfRUbVQJeZkZGr klE4nYAkt6pyPi4yuY/IpHWB1SHDk3e/alYUdgxWmHtsJFn9ZUSKq6WyFQEjv4g5DPUm Vnjg== X-Gm-Message-State: AAQBX9ft7Nb/IbFINQJ+JTfZAhwecwFPtGUGnYJcWdUdPZrJunSFJ48A oyGs3duRkcJg70d3K2svmLhyzA== X-Received: by 2002:a17:907:6744:b0:930:d30a:6c20 with SMTP id qm4-20020a170907674400b00930d30a6c20mr154044ejc.17.1680813137576; Thu, 06 Apr 2023 13:32:17 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id s4-20020a1709067b8400b0092bea699124sm1210330ejo.106.2023.04.06.13.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:17 -0700 (PDT) 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 , Luka Perkov , 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 27/68] hwmon: lm83: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:22 +0200 Message-Id: <20230406203103.3011503-28-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=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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/lm83.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lm83.c b/drivers/hwmon/lm83.c index 616449f2cc50..bcaf31ec176e 100644 --- a/drivers/hwmon/lm83.c +++ b/drivers/hwmon/lm83.c @@ -337,7 +337,7 @@ static umode_t lm83_is_visible(const void *_data, enum hwmon_sensor_types type, return 0; } -static const struct hwmon_channel_info *lm83_info[] = { +static const struct hwmon_channel_info * const lm83_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_ALARMS), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | -- 2.34.1