Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp83502rwl; Thu, 6 Apr 2023 13:35:26 -0700 (PDT) X-Google-Smtp-Source: AKy350bGQxY8JYwvimXnJ0QKnEqD+Ogil1ky2ZI5ty2V/2nNRu8f8crUTUTHjA8Iv1Ne4j+RnPsN X-Received: by 2002:a17:906:13ca:b0:882:cdd4:14d9 with SMTP id g10-20020a17090613ca00b00882cdd414d9mr123435ejc.46.1680813325944; Thu, 06 Apr 2023 13:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813325; cv=none; d=google.com; s=arc-20160816; b=pfTgHcZ+OBPDEdsX3ycxISGZfXVmmtPyU92+QG6PwC9wrcSeUG3LdSBbWwhepKXq6n Pdcg620HHqXpntcRWoWQY3GkfwBDcDxNS6iNqNh/UXdlCyCzpnADHWLi9A39yTf1NCJu lJm+osf5nIjkFZrZcUPSjSCgwLK7Zju30ooySB33GpFvXkZzi8JYXaJYKZJFxz3qz9OR D0oilbHEPBjCKlQ2dtEnbVTokj0hLEP1UUDeEIeESvHOEryBvZXKlwLaRj/+Q8XEGNYv T7IBLaZ0Vrs8Q42W5Qqe+4b800zhxQ+KDDdr8VgxV3CiTMsOq8STrK10qgvTdBt/pI/3 c7Sg== 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=CNp3WYqV/V7CDaByQ6e7/ceMuMWEtGPx0KFJs+NcOj0=; b=LWnRKNs5L7hOneN0rY3MwC5gIjsrMWjjL78MNzXSKdm4WL1AtcDE5Hgp6bW1XubpOF c53daoPmhAiF4TrHSJGjMJ5Ry9DQU5tDzDuaA+uu5+L8XpLSnqUnOWBinwzlAGVnteQS phCzKmqbDrryqhk3w+SG9mK19tZqJK8BX/lKmsOnvKLo0WDGExfH+AgmPwWDCcmNkM3n XamJWN9iDHa5HCpVUZxb9YfZSCVPm4zLBKG9wxZptu0pgpPRbU2ZL99VZ69TzQFQr70d bMYdc9ZRVM8FFScEbOBZOOTsrCu8AEBftfdlK5jdnR+FNnglYkItU0jj5HYWI73F5jVa jZ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PlCNPADL; 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 x26-20020a170906805a00b0093341226719si1213339ejw.709.2023.04.06.13.34.56; Thu, 06 Apr 2023 13:35:25 -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=PlCNPADL; 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 S239872AbjDFUdn (ORCPT + 99 others); Thu, 6 Apr 2023 16:33:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239586AbjDFUdN (ORCPT ); Thu, 6 Apr 2023 16:33:13 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66B0AA5C6 for ; Thu, 6 Apr 2023 13:32:14 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id l15so4220747ejq.10 for ; Thu, 06 Apr 2023 13:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813132; 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=CNp3WYqV/V7CDaByQ6e7/ceMuMWEtGPx0KFJs+NcOj0=; b=PlCNPADLLxrpEitZeVrRHlscQjOgnnSh+Mk2MmQ3ulAO6OMkjKdPOAjyiWgYk44Beu FCKCoWAMDe3ZZFwFA908RF8ktFCR85AuvLlLSjgzvPnKP6QdSAoG+lH+8IrhYme8Luk4 9bpGbIMWzDVcjlVDgpiS6kxSU9QmqJuSYTihuiGzxPar8hU38iLg+XukWhebKaodFG3E knO9iHkp/j19RNRUysp0RKX7hKPEUehgY7cQ/xxVl0HEcsvp1aSkKfWZeUw3vWfi5Kjt W5uiFYcH/mThvS651XTGFlH+ffw+/0WHtYDheiSR6PxHt/KyvOWEn16TBp6vziXxBa3S IlJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813132; 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=CNp3WYqV/V7CDaByQ6e7/ceMuMWEtGPx0KFJs+NcOj0=; b=phx1PrkheQLjBfvwL4z4xjzDNYhTtbmJL6wofJ+60BG+VFN6nwdozqY4wEX40BIyPf 208kS3jFMYy+wFwWiF5SVCl3cls63ZqKqP25Lt1sh1ER37l22tWBwwCedKZBsx66wfWO 1+8+3Xq18VMjPHJ6cdxPGKWfHF9013PviBgvQ5q6p7obe9mQnMNdDBCdvv6zNEv7OoJ6 ytgmQ+7KGttv/D40cNrwx/oXzFLfn/kE+R+1/ebnYOM3N2k7+sDSN56wLmS/5YaINLRS kLJSrcXTOM8+I3/v4kJNgWmQ5bCpavTXPXFIDEmMDsoAdd4sKZZnwgtJQkYftZSFLYdg SXZQ== X-Gm-Message-State: AAQBX9cRsSExGyni5grSpnZPgxM0rnpmfmWtgFVR1X0nNG7gYH2NbCsP 5UHFgAsjCk8UtldRhr6t3O4yOA== X-Received: by 2002:a17:906:1412:b0:939:e928:5323 with SMTP id p18-20020a170906141200b00939e9285323mr97046ejc.54.1680813132640; Thu, 06 Apr 2023 13:32:12 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:12 -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 25/68] hwmon: lan966x: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:20 +0200 Message-Id: <20230406203103.3011503-26-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/lan966x-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lan966x-hwmon.c b/drivers/hwmon/lan966x-hwmon.c index f41df053ac31..f8658359a098 100644 --- a/drivers/hwmon/lan966x-hwmon.c +++ b/drivers/hwmon/lan966x-hwmon.c @@ -260,7 +260,7 @@ static umode_t lan966x_hwmon_is_visible(const void *data, return mode; } -static const struct hwmon_channel_info *lan966x_hwmon_info[] = { +static const struct hwmon_channel_info * const lan966x_hwmon_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), -- 2.34.1