Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1421rwl; Thu, 6 Apr 2023 13:43:53 -0700 (PDT) X-Google-Smtp-Source: AKy350bsPY0jPcdanD4OB+Q2VueSxi2JwEVT75c/H2YMsBKOHphD1b/qSJ0aXprVJ0vCLvGkILwX X-Received: by 2002:a17:90a:1a46:b0:233:e305:f617 with SMTP id 6-20020a17090a1a4600b00233e305f617mr13080198pjl.32.1680813833580; Thu, 06 Apr 2023 13:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813833; cv=none; d=google.com; s=arc-20160816; b=iO+HGazm2cu8bTfZAEt8hxht2CDNXvYsvqlM8N5wTmFgAQ5WljOY4CfQ+NZg9map8V qk5L5tEwETMOimjuZqNCsMPYLsayrOHx1glTCTSN5Znr3cNdft/ijQZ/luQEYjckz6hT /mIi2PVEq3+mBDlLeKkYFNkSi6bMnn2abAh/RhuKZsRgH2/w4WlQdlOOYSB9UVtqsmh2 4E79X/d1jG0av/I6ugFhr54cwowEEA0r8bZh0VyN1oWeTMsqULxrhfrEn2SkVLDu1GIH 8Z+f2tyq6ShjTqRjMDGmA1V9uiByqS+DspA9jf4YLNY1Rv/ff036ciTZNHnZdyStaQFP evvQ== 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=Eh6cbSISme4hiMsAZlaoAOFo+6jTJlGGCpBzOk0+IbU=; b=NqE5S/9T2qFEeJlkqpH10vyfPluAGIqLq67EgRA8JmgpiK4ksayM8l9BVhc2dUa1Gz WyWyFFpY2bl11qvlkozwzSS+Ciz7130/gMCW3PfpKzYqg1//JDBfjutjTmREQw4BwFzT MghRubwQ2o7lMKAQDBHXA49pRmsC/McyhUx9Muu9WzoNfWbZ2pKv7EjhbHuioGpYtpqs gI756va5Df0yExXO4FQj6qBgGmZyJfqOS3cLLhvJQn/UlMwDQZwQSX+zcWl7DdRzhw3i P2HGpsu2pIE/woLo6qCf0Nwz/f8HzUm0UtoqTpQ8foU6vsS1Tyv9V4O5RrTqUeYD4PNt NPgA== 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 b3-20020a17090aa58300b0022c9cb7662csi4535399pjq.159.2023.04.06.13.43.41; Thu, 06 Apr 2023 13:43:53 -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 S240362AbjDFUnE (ORCPT + 99 others); Thu, 6 Apr 2023 16:43:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239966AbjDFUmU (ORCPT ); Thu, 6 Apr 2023 16:42:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69CF659EA; Thu, 6 Apr 2023 13:39:57 -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 0121E62C36; Thu, 6 Apr 2023 20:39:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53B61C4339E; Thu, 6 Apr 2023 20:39:45 +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 57/68] hwmon: sl28cpld: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:19 +0200 Message-Id: <20230406203821.3012402-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=-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/sl28cpld-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sl28cpld-hwmon.c b/drivers/hwmon/sl28cpld-hwmon.c index 9ce4899a81a5..e020f25c9300 100644 --- a/drivers/hwmon/sl28cpld-hwmon.c +++ b/drivers/hwmon/sl28cpld-hwmon.c @@ -67,7 +67,7 @@ static int sl28cpld_hwmon_read(struct device *dev, return 0; } -static const struct hwmon_channel_info *sl28cpld_hwmon_info[] = { +static const struct hwmon_channel_info * const sl28cpld_hwmon_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), NULL }; -- 2.34.1