Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp632rwl; Thu, 6 Apr 2023 13:43:05 -0700 (PDT) X-Google-Smtp-Source: AKy350aYOo0oCxbGZo2efC8WKh68148uy+AfaU6B4TROs8ELFozvoIgzEOi5ijcE+YTWdi81PgBO X-Received: by 2002:a17:902:f685:b0:1a1:defc:30d8 with SMTP id l5-20020a170902f68500b001a1defc30d8mr518629plg.32.1680813785565; Thu, 06 Apr 2023 13:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813785; cv=none; d=google.com; s=arc-20160816; b=UycBekTPfcgUkfKAfznIb3/lbN4lHpV3Z5Eo9yesPGsyBonu2enPS5JkF15Krd4UYa 2uyuPmKPl6o14DPia+181GxlNMpMCxi3KOQXpFIcYuBSBegNwNLUtKbM1Yms9+V7PWs9 qzlAVkvisNuNXm87oDaQ3/SyoxH0RbUb6wleA1zQLDbEJuMrovVcp+Ak+xfktDikR0Pf P5MrC+GYrNJCp4Zghk94L6niAwYhjepizpbp1UOXFajRC+qTepldoOVf2lBmhhiSxo6v St3G35bXu9fIYdmchtQsDxYxmSPEjJBUt23eIIO2YXjjtVMGvvmCc89DJLvNiAipv+rV +QZw== 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=/cSF62SSZ/gaOhdcnmXrBqQ+s2p79JN4uy1rvb48Wlc=; b=e1C8mXA9XOjMuIaTcWaGjL+AKpwKpP26kM1reN3QWq+H9TRT4nnHCjnfa/HaywOkiS Cij5ZC5oZffW55qgcNn4fnSYffgOHFWdaWZshWekQV7sKXbT52GDOf5xUmRVKsQZhRWX sUla3noUMIw/CbK+K2Vo3CFjFbSZ4BwudpKP+r5A/R9THu3n307qBqaBfyia4Bx/HIqd 1cBT7yS0LDUQE4DJOWZK1Cu79C5x4/Z3sDtI5wYxsH0KmmRQOrs+D+QZAtgsORt/zkcY bl1KWTwkxKDOJ12FJcfbP+/NNDPIArVrKnoZQhEXHFhi8o15sIUV+MoUgql0BjwN44+z z8uw== 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 kf7-20020a17090305c700b001a23f012e96si2300860plb.8.2023.04.06.13.42.52; Thu, 06 Apr 2023 13:43:05 -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 S239602AbjDFUmZ (ORCPT + 99 others); Thu, 6 Apr 2023 16:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240275AbjDFUlw (ORCPT ); Thu, 6 Apr 2023 16:41:52 -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 47C33C160; Thu, 6 Apr 2023 13:38:49 -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 CEECD60FC4; Thu, 6 Apr 2023 20:38:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B237AC4339E; Thu, 6 Apr 2023 20:38:36 +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 51/68] hwmon: powr1220: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:13 +0200 Message-Id: <20230406203821.3012402-2-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=-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: 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/powr1220.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/powr1220.c b/drivers/hwmon/powr1220.c index f77dc6db31ac..9cb0c2de5219 100644 --- a/drivers/hwmon/powr1220.c +++ b/drivers/hwmon/powr1220.c @@ -248,7 +248,7 @@ powr1220_read(struct device *dev, enum hwmon_sensor_types type, u32 return 0; } -static const struct hwmon_channel_info *powr1220_info[] = { +static const struct hwmon_channel_info * const powr1220_info[] = { HWMON_CHANNEL_INFO(in, HWMON_I_INPUT | HWMON_I_HIGHEST | HWMON_I_LABEL, HWMON_I_INPUT | HWMON_I_HIGHEST | HWMON_I_LABEL, -- 2.34.1