Message ID | 20230407145911.79642-4-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 b10csp355553vqo; Fri, 7 Apr 2023 08:17:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YG0OunB219/GPdzkTTQJckpY9yVLzeII7wWBWG/QX/mTwgi3rAPSTI+FBlVTR+uFn10blw X-Received: by 2002:a17:903:284d:b0:1a2:9183:a49c with SMTP id kq13-20020a170903284d00b001a29183a49cmr2780263plb.32.1680880672249; Fri, 07 Apr 2023 08:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680880672; cv=none; d=google.com; s=arc-20160816; b=vh/3ZNYdAdUhhfcaNTPIkfI9hDJDSZOwWWeeIV+9WBQBKokkkRmxcfFOGNmDq70ANJ l55KyP9SYERVSfuT17xZsv6X6OjngzLg6S1G50h7TzofVvK9dxoToL9t1HxwscdXeeRf ZxWb9U0IAMtXN/Ip7gDA1a/R8VDWBhmoOsxmdGEeDqmfpMLbBLf/LZP7C/NEbcB2Fb3L et6IgzKgNp6xLqgle6k43Eq5TqjSwh4fml05a57BOoMpkro/EIwDsy84Q/IZH+Yn6493 Iy0r6o7QOBIwSJIgqhtydBktXcV5rO4hCY07odlJohR3TmU7fwwC58j7EhdJ/p2bUpSN QWbg== 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=c12g3GohK0w2OAExz+DAKspwl3v02IEN0hK6dXZMXHI=; b=Xp5bGD9YLD9gfameDrHRWRRpT3nZ4nwsl2Gl7uVvWrU/+EvPvjGTZbsr6IVTXF4Jt8 hFmbtiJ4w/RJUIY2lUYQct3fnHZpn3WWPHCGx5lPK7o61RN+rXvobzFDKsMJJGJFrOjl tKnd4wPfKhVgwPM12zYQC1BgDKL63+L9/FBRyjQJaOSYMSzHkcIYttBGGqW91HmvZyOB S3p8C3VihNP9SX9IzrfxgI4o/aY0cYw+aKVV8IRRGwd4zvE7punSSI+wuy+CdHpkCyS+ GoYDGM+hP9XGTZvFZv25T+V1nzN9WaexkL8L2cuzv7edT4xE+5LM5KO26Xg+XQlhW1o9 zw6Q== 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 e9-20020a17090301c900b0019e272a22c7si4433408plh.53.2023.04.07.08.17.40; Fri, 07 Apr 2023 08:17:52 -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 S232864AbjDGO76 (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Fri, 7 Apr 2023 10:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbjDGO7j (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Apr 2023 10:59:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0F5CB77B; Fri, 7 Apr 2023 07:59:38 -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 39CE2651BD; Fri, 7 Apr 2023 14:59:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52D80C4339E; Fri, 7 Apr 2023 14:59:33 +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 4/8] net: phy: bcm54140: constify pointers to hwmon_channel_info Date: Fri, 7 Apr 2023 16:59:07 +0200 Message-Id: <20230407145911.79642-4-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=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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?1762530985003017683?= X-GMAIL-MSGID: =?utf-8?q?1762531131530478157?= |
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/phy/bcm54140.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/bcm54140.c b/drivers/net/phy/bcm54140.c index d8f3024860dc..d43076592f81 100644 --- a/drivers/net/phy/bcm54140.c +++ b/drivers/net/phy/bcm54140.c @@ -364,7 +364,7 @@ static int bcm54140_hwmon_write(struct device *dev, } } -static const struct hwmon_channel_info *bcm54140_hwmon_info[] = { +static const struct hwmon_channel_info * const bcm54140_hwmon_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_ALARM),