Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp18616rwf; Thu, 6 Apr 2023 13:41:51 -0700 (PDT) X-Google-Smtp-Source: AKy350an0ukHsryE+ec1Oe4NUxJ6WT5s3TXOLQhurnslT0z4B7QpMLvD86KdlhfAWxbzAXk/pQh4 X-Received: by 2002:a17:906:585:b0:925:6bcb:4796 with SMTP id 5-20020a170906058500b009256bcb4796mr6494899ejn.38.1680813711536; Thu, 06 Apr 2023 13:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813711; cv=none; d=google.com; s=arc-20160816; b=pzxNu2He4xxN5Ym+Lcp0VZDmtKwLliQAFbqb460kS0F7dojWTEpmRY6aWJETSOzg4h L+GUNQI8iVw7BMOel5hxUbkFDsp3T/TOzcd9sEQEGgZ9kCvJ6FAxS+Q1XO4xetyo6lcL h/+KYVVG3v6lwNj5hCngbIOApNTeSwkXVS53hDKQwnQ6K+lKORJk7iX2x3rsfZttlN+s OPZML7hnOOAs3qyvK57mMWCMfZ12Tn4XCWsx70it99cK8+OLqulOKs0MYjwEVmNg3Hxo K8O/z0ZQDaUxzgPD1z3Rl8oXUT9vNW56yzO2zQsCO+ep64P0MrR5v8k1i2Ophij1lVL1 FhXg== 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=yveSdcmWY9JqrS8p94zgO4VD/Xl4GBOaryVHS7I39l8=; b=Khum5uZzukQq5ZP457rArrZrGcmSFDQ0hBVYvonk4yC+YOcsGl0WXPva+CSAMUoZ1J Vozhif5zGE0i/BWieFNGc1tsVh92P9+4eSIGbONA3Dr/EfyPI3p/S0Ena0cVqLMfnc8k dfH1tjJov1B3vA2cT8KnbTYHGAtzIMnEzbUq1b0y/OrLDQ/V0FM8pJsNqWyYifEMulyb 4EaJDZZndDKdsIveTIepoCpXI87yCXvnUZk+EqRgtTegFiizudd5sZS/zWkmrgQgMRNS eHAyUN9bxm3peJ0fxtupeVMocSUpAPOpdGAM4e3776J/BjuAmME++7SJsHgVBaTAdUsQ vVOA== 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 i2-20020a170906698200b0093defbd6288si1826836ejr.1039.2023.04.06.13.41.26; Thu, 06 Apr 2023 13:41:51 -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 S240309AbjDFUk6 (ORCPT + 99 others); Thu, 6 Apr 2023 16:40:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240744AbjDFUkf (ORCPT ); Thu, 6 Apr 2023 16:40:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E67CABDD9; Thu, 6 Apr 2023 13:36:40 -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 723A9648E2; Thu, 6 Apr 2023 20:36:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 355BFC433EF; Thu, 6 Apr 2023 20:36:29 +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 44/68] hwmon: mlxreg: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:25 +0200 Message-Id: <20230406203530.3012191-3-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/mlxreg-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c index 96017cc8da7e..c2a96468c9b4 100644 --- a/drivers/hwmon/mlxreg-fan.c +++ b/drivers/hwmon/mlxreg-fan.c @@ -285,7 +285,7 @@ static char *mlxreg_fan_name[] = { "mlxreg_fan3", }; -static const struct hwmon_channel_info *mlxreg_fan_hwmon_info[] = { +static const struct hwmon_channel_info * const mlxreg_fan_hwmon_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_FAULT, HWMON_F_INPUT | HWMON_F_FAULT, -- 2.34.1