Message ID | 20230407145911.79642-2-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp342620vqo; Fri, 7 Apr 2023 08:00:53 -0700 (PDT) X-Google-Smtp-Source: AKy350b+j8HBHlKbdhQsbd19Luuz9aCkPKj82nAFDN3QNcr1Mug0pfqvd9x58JZ6OhZsXhCNWRlW X-Received: by 2002:a17:907:1dd2:b0:932:c315:b0d with SMTP id og18-20020a1709071dd200b00932c3150b0dmr2160384ejc.34.1680879653580; Fri, 07 Apr 2023 08:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680879653; cv=none; d=google.com; s=arc-20160816; b=Y+X4FukBlCbwRiTEIqNASz/TeGc8p+vt18ooV2t2GV+CInWZd75W8RumwxO9vYgdH1 qe4Qz86SpcKo6/en58SfpeDWPe3g5kEg1yEjcO7cFD8oIOZ4Ob+v60XXx26FedyWA12I Rj5TtIvP4U+wF6dSlUWsdMBbEQPlYTFQVdROa9ZBffE5zAhpiZoQUyGg6q9iE6Pm5zC9 ezTt+ttZzgC+nvaGpWJ5GbwmVTxbwX307KW4N2CzohcqconHCX//Df6Hs+69fcrxejRI 44iBJbbSP9meImWLZNB7TzSb83DXPEDMubBuQaaqCp3iwQRFkd0uYtbL/etxqU5G4V+/ tK4Q== 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=xkvyojDoVYWSw82CxeBqcLLnLb+ANN72uVuyEhZnhEc=; b=QUc64aPB/mYWjIX6eMmeYt583wL7orgc8GwKmv5EdicEQDA5fUQjL50UGh6IY3qbD9 fipYrMbDw3uPix/Uts0ziKAvkIr004V3onTACNEzSsfOUtFXJu8U22P2gcbGVXN46IrQ QNfte8RE2P6USTY8wwSwhbpSvNC3fVESR8ePW8H38d0f638i3N+M15ShzGuQ7LYeaT0a jMIXivMV0LHwNpM69J1aLrzMJ4Mvj+uZua8q6MVFfvFjnggq/8CeDzYoDqdxQ8gkoIaf aW9H0PzkMSNVASP3fQqx+F8Codp/Nas3nQm0QdNUqCcHyphOKtjK9QviQXGRg9JDwGRM b/Jg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a170906100a00b009300aeecec0si3473951ejm.723.2023.04.07.08.00.29; Fri, 07 Apr 2023 08:00:53 -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 S231414AbjDGO7h (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Fri, 7 Apr 2023 10:59:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbjDGO73 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Apr 2023 10:59:29 -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 66588AD21; Fri, 7 Apr 2023 07:59:28 -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 02E9B611B5; Fri, 7 Apr 2023 14:59:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17E4FC4339E; Fri, 7 Apr 2023 14:59:22 +0000 (UTC) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Igor Russkikh <irusskikh@marvell.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <simon.horman@corigine.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Florian Fainelli <f.fainelli@gmail.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>, Xu Liang <lxu@maxlinear.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, oss-drivers@corigine.com Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, linux-hwmon@vger.kernel.org Subject: [PATCH 2/8] net: aquantia: constify pointers to hwmon_channel_info Date: Fri, 7 Apr 2023 16:59:05 +0200 Message-Id: <20230407145911.79642-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230407145911.79642-1-krzysztof.kozlowski@linaro.org> References: <20230407145911.79642-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762530063904805695?= X-GMAIL-MSGID: =?utf-8?q?1762530063904805695?= |
Series |
[1/8] net: netronome: constify pointers to hwmon_channel_info
|
|
Commit Message
Krzysztof Kozlowski
April 7, 2023, 2:59 p.m. UTC
Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This depends on hwmon core patch:
https://lore.kernel.org/all/20230406203103.3011503-2-krzysztof.kozlowski@linaro.org/
Therefore I propose this should also go via hwmon tree.
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
---
drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c b/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c index d3526cd38f3d..414b2e448d59 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c @@ -124,7 +124,7 @@ static const struct hwmon_channel_info aq_hwmon_temp = { .config = aq_hwmon_temp_config, }; -static const struct hwmon_channel_info *aq_hwmon_info[] = { +static const struct hwmon_channel_info * const aq_hwmon_info[] = { &aq_hwmon_temp, NULL, };