Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp84071rwl; Thu, 6 Apr 2023 13:35:56 -0700 (PDT) X-Google-Smtp-Source: AKy350Ys9gxzKQ2jra5DoVjRid5g/xWHbEHmhGxastFwmRNyaYSTOunnHLYlaIV30gwkUotPcwvo X-Received: by 2002:a17:906:37d0:b0:946:bfb0:de85 with SMTP id o16-20020a17090637d000b00946bfb0de85mr128462ejc.70.1680813356533; Thu, 06 Apr 2023 13:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813356; cv=none; d=google.com; s=arc-20160816; b=Wc/GZQkwxxyZ8GJaoyZCusmqdgubS9yiuXwYJAlXTVqs9GS5fqm/0Kh2BH7YZ+bnpK mVcsEYJ6Car8mGO8Vy8q7yEdPFpGDIhprTqReL/m4rXDaRpNG99TwLNs2OKq1wh/a7Oz RWNHITUalVET+rmpA7zIA8AcpmPhX3V1L0oLDnS3x6Bd5b4dVJcn8ibTSwsE6Mezk6yk y/uwaoQUc6NWlYsHg7ns6wPulqRpZQ5fMMkaIjcXG48wnVBKAhLeuantFdlv1z8iu9KB FvCY22Vb/A0R1WlHLzk7+eoAy1b1cLWgYLahUblX6uQRjfNqGZjzuWnNBD/xDvM16NRM x98Q== 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=eDyUmonauZ8nm6n5G/LkXb2fBKeLEqNmyMFXN+56R/0=; b=s9CmivHhXnCJgFe1UDzWFMuZxOF93lz8L7l8nxSRdTLjPtahbZSbnC+04qTr5TL10b OXqel9jkEDVK4XBKiUspGThxGxz2yrrrLN35+ax2GS7oc3Czw3WkS6oXao2nVvIBWbmB 7JE+WtjBc3SZ3tj05fFjGoaibUI6bBNADXGMzreiwiWQlp7JaBYumAbsEykTu/7mtvvW hxJMteHZqPyKq4BPSBvGsLTfMoDmmLWKJV6Q77hfj7ykC/q5H3NbZtQQT7r8GbDhu223 BbwgM3Eab6nKhK4zcjQ2iI1WXTvgkpVkxI/VKp5FWhMYLoCcav8IfkK8Qq3HDAGmjg+2 CtXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YMS5yzUg; 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 bf28-20020a0564021a5c00b0050296642330si1918295edb.2.2023.04.06.13.35.27; Thu, 06 Apr 2023 13:35:56 -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=YMS5yzUg; 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 S239988AbjDFUeS (ORCPT + 99 others); Thu, 6 Apr 2023 16:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239878AbjDFUdw (ORCPT ); Thu, 6 Apr 2023 16:33:52 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C29C160 for ; Thu, 6 Apr 2023 13:32:26 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id qb20so4219640ejc.6 for ; Thu, 06 Apr 2023 13:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813145; 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=eDyUmonauZ8nm6n5G/LkXb2fBKeLEqNmyMFXN+56R/0=; b=YMS5yzUgMpMduF8w1083GJyyM6G6mP2dHeTaOtQucecobZTroK8AAqIAmDn6/gJfrG ixVUYsEiSU+LJT4zWFOe7Ptebv771vH7Vay68cGCplldTOwBeRcj1S0c47TJagJd9Ab0 B0VIJAcrQ1aVhxBoW5MBMLiegaF47uXPlYUF0SJ6QCNdhhkinlV8OPOngm5VKzqrURVS 50xVbFPq8CtFxAmoA7S3p7KME50ER3N2prf22Ax4x/dy9mtv9rg/XqrNnj4kjT7Dqwx/ dxV/zlM/71fKfQn5h7ZzgAVkNSeuHav8BPytem0sIENRe/dSezZUULJjjpodkHqvG/Ex l2DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813145; 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=eDyUmonauZ8nm6n5G/LkXb2fBKeLEqNmyMFXN+56R/0=; b=XPOmCG5rLnQ0Oz7dsIzX7OVFUzUyALNeerwJpJfuBVRkCyQlUV0uMiot115VZsipuI 7vTT510WQJgdDzk1ByJEYrnXPH23iCto6+rxdTt+0Gh40YU6H/Zi2niCcByZEC9LfYps xFt86+pR+tinrU/wwLixGu8P8RYlMfjguUVpUTn4Td0rlm3hB16t05vMQrIvC5GTKPAa WfQ6hq7Ddimq/7Gpnj275DE5OF2h3w0H3QtZl6NjZ+w2tH3EIl/Q7eK/R3yF1Ji41+PF g5xPYBDa6fkbSYyOh6FFJZ3jQaSddnlrBjhlO2CVQ83LVUSRUVQd/v9tJsvAGqJwK93Z N/dw== X-Gm-Message-State: AAQBX9elFOXY90WIMEWTeYXVgpw2iDVAYhifQBNRVJ0MKb/dre2k6GKo sd+EWN7pkze3+7B8/IA0GYg1uQ== X-Received: by 2002:a17:906:80c9:b0:931:2306:f363 with SMTP id a9-20020a17090680c900b009312306f363mr150222ejx.21.1680813145115; Thu, 06 Apr 2023 13:32:25 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:24 -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 30/68] hwmon: lochnagar: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:25 +0200 Message-Id: <20230406203103.3011503-31-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/lochnagar-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lochnagar-hwmon.c b/drivers/hwmon/lochnagar-hwmon.c index 8b19adf2eeb0..9948e2f7208d 100644 --- a/drivers/hwmon/lochnagar-hwmon.c +++ b/drivers/hwmon/lochnagar-hwmon.c @@ -321,7 +321,7 @@ static const struct hwmon_ops lochnagar_ops = { .write = lochnagar_write, }; -static const struct hwmon_channel_info *lochnagar_info[] = { +static const struct hwmon_channel_info * const lochnagar_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), HWMON_CHANNEL_INFO(in, HWMON_I_INPUT | HWMON_I_LABEL, HWMON_I_INPUT | HWMON_I_LABEL, -- 2.34.1