Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp65rwl; Thu, 6 Apr 2023 13:42:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bBmRqQ80iZKda7f7+mtp8KCRH54D6bAmfuXLJHHXEPEXyMjCJ5otV6RN0YZk2AYUpiZOua X-Received: by 2002:aa7:9841:0:b0:62b:38ed:6507 with SMTP id n1-20020aa79841000000b0062b38ed6507mr159579pfq.20.1680813743109; Thu, 06 Apr 2023 13:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813743; cv=none; d=google.com; s=arc-20160816; b=nzKI3O6p3WvSZ7kBwt9AFH6Jy5+VgTYtD7bbJNvu4k+tNizkak47gnVL8wfHg1cFrA H8gMX3IESRjdeT+gjVT2nMpb6/QmQ6/fsEvSbtY2EZxDNviCL22xQn6Wu+1YzsuUb147 ljLhllbANpPiDEqJwvTvwwN8k4RrwU8qnR3e/sKfmSw6xFdm53FGgVSa7cVgxdJGYplm cH57wH1winW49VMHGuv6A7+fvyryz8hqTl3j7xCnYV2L+gLePpRo6XzssouGTHm5b9Iq y0ujLImjBQy0GvZzYopwXs6fdwXFsTtZOgUIMhS6X2ZEcop1AxI5vIZvEhx2YafE+Nbj gvGA== 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=M0C9oxZq8An9rdBFoc43NvUNJ28yQ1AJUQDB8o/9aFo=; b=l0b5u5qAw0Hx7ZCoj3fTErFY38w6/5Sd8w4tPmVf4GCcx3TqTDyETItzTFA981rOBr 7zW3nCEWkfm8WOLz2FThru8VxGYuH/UQ2TpZxfj6jfuyqJR6cyBYtaeTqXk2aDbp6YGJ hfjLCgUHe5J9zGYnSIIll3n5V1UOJZtdj/ZQUgox8Wl3/HnN8NxzOdkgi6qbrITtMHjV lndu3JfOPXRkyeB0LQDgej7y0GmXV1dCBZY90VpJ/bDJomS3LumBKEgi7wZzfpyU9avL xEd0/ygxczYHsxVrir3D/o1uzceYFIf1hwnlExY6lkkjmgQvT9ZLQpmiem0C15n1N4vu uINg== 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 bs127-20020a632885000000b0050b1a4d8625si1959940pgb.723.2023.04.06.13.42.11; Thu, 06 Apr 2023 13:42:23 -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 S240334AbjDFUly (ORCPT + 99 others); Thu, 6 Apr 2023 16:41:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240225AbjDFUlS (ORCPT ); Thu, 6 Apr 2023 16:41:18 -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 1575EB74D; Thu, 6 Apr 2023 13:37:39 -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 A759D60F7E; Thu, 6 Apr 2023 20:37:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CBD2C433EF; Thu, 6 Apr 2023 20:37:26 +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 49/68] hwmon: oxp-sensors: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:30 +0200 Message-Id: <20230406203530.3012191-8-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/oxp-sensors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c index 36872b57912a..ae67207030e8 100644 --- a/drivers/hwmon/oxp-sensors.c +++ b/drivers/hwmon/oxp-sensors.c @@ -239,7 +239,7 @@ static int oxp_platform_write(struct device *dev, enum hwmon_sensor_types type, } /* Known sensors in the OXP EC controllers */ -static const struct hwmon_channel_info *oxp_platform_sensors[] = { +static const struct hwmon_channel_info * const oxp_platform_sensors[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), HWMON_CHANNEL_INFO(pwm, -- 2.34.1