Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp18818rwf; Thu, 6 Apr 2023 13:42:06 -0700 (PDT) X-Google-Smtp-Source: AKy350aZBCq9awdC4YCGQinKCXB1hvvLjcCDhU8VwoEvI7YkKRW99QJh0acTqekUzvoPZ/TxE47e X-Received: by 2002:a17:902:ec85:b0:19e:7880:1c2 with SMTP id x5-20020a170902ec8500b0019e788001c2mr373413plg.47.1680813726037; Thu, 06 Apr 2023 13:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813726; cv=none; d=google.com; s=arc-20160816; b=EOXMpsfWM5JIkHSWxW8X2lZveYBpnQguWHhozA/3XfGOFW5PMMYVuJqJExMV5Ox8FC g4poD2tr0ftDabyvDKlzlC6wTAtBWEOlJOLqXTQ+fuIQmaLe1efHY7uW57F5MgLMqrsg xENjjgRNEvkGC8WDmHrPFXjfqc+ij04XrX9v5RGEdn/r1mipTTlK0RGme0hiulN66yPk b82DfBtHHOkxNgIzp3dQP/ZRDXP74vj2Ou4O8gCdLuG1RlRN50QGWID5IGaaswGcJEm6 Y7l+3aKo1csCubNEe2B0xHbwR3zJxo1cI7qetxbdKo/GLQ9uF4Ngw1TeSiWgpXYivAdl IPdg== 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=LK2/bFFeE1cfrXmARi/fVRPsLmrJ1bDo0p+tNqruIeA=; b=WrEAWfImuK+V76bm84I32ndedR4D0aBFJv6DmFW93VPz5PwmDAfJAEqLQkSKXwvXZr i/Oyhf+xrzJddFpdq6w8H+2gPXTBL3x+8uaG0aX3oMFMU3abk5/Osg0zV7sNI4JmJQ5z kPtckglm+iS28bBmIJOobRv2MfxxtQoPwgEvn9QOO4cYQ7GakGK/6FCt2Pj2FKNU7/ka zspX39h91tTApMpzp2rb6Ig406b4KDYsuAaVT01WCWDMZygwYGRY2eHMg4/FXdbYcjaR MQE/Ic3VS8Ajb87d8l1BlRJG3zlZhwJ+6l6dnfJITzRzSLgLSFG6Ztz6QCJDVl4IJKZ/ aOgw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a170903024600b00194afb5a3f9si2690740plh.164.2023.04.06.13.41.53; Thu, 06 Apr 2023 13:42:06 -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 S239937AbjDFUl3 (ORCPT + 99 others); Thu, 6 Apr 2023 16:41:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240322AbjDFUlB (ORCPT ); Thu, 6 Apr 2023 16:41:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02170BDF2; Thu, 6 Apr 2023 13:37:03 -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 82AD264C14; Thu, 6 Apr 2023 20:37:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 126FFC4339B; Thu, 6 Apr 2023 20:36:51 +0000 (UTC) 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 , 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 46/68] hwmon: npcm750-pwm: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:27 +0200 Message-Id: <20230406203530.3012191-5-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=-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: 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/npcm750-pwm-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c index 11a28609da3c..10ed3f4335d4 100644 --- a/drivers/hwmon/npcm750-pwm-fan.c +++ b/drivers/hwmon/npcm750-pwm-fan.c @@ -629,7 +629,7 @@ static umode_t npcm7xx_is_visible(const void *data, } } -static const struct hwmon_channel_info *npcm7xx_info[] = { +static const struct hwmon_channel_info * const npcm7xx_info[] = { HWMON_CHANNEL_INFO(pwm, HWMON_PWM_INPUT, HWMON_PWM_INPUT, -- 2.34.1