Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1271rwl; Thu, 6 Apr 2023 13:43:44 -0700 (PDT) X-Google-Smtp-Source: AKy350bkO8ABFksOLlwnAQMVZ7/FWcLgDj8Z+cBydrqVeJvaGOCAuDIMx9byavFUR0WBFng4R5KK X-Received: by 2002:a05:6a20:4e10:b0:c6:c0c1:b1fe with SMTP id gk16-20020a056a204e1000b000c6c0c1b1femr518343pzb.57.1680813824214; Thu, 06 Apr 2023 13:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813824; cv=none; d=google.com; s=arc-20160816; b=dnK0/GLcdQoZHkBsHMA5gRLexiAHAbgYnY5JqZVnSzsbhNDt22nUq8MAcl7vPfcMrf FpLd0g/ZF7s004Zv/ZyBK4YgOyjs3ZhHbIzuKHSLMivyVfnMoZixefgEoo3esv/SBdxX JnPD01/RQ/bswCUipREE7Krc1LkBYmFlZCTfmkSMgidDOq06FHNiZuUQIs0I+NYUCb4N YVhkAg3Nq5nmG5rh46F6RQi3zQbHPkSxGDg/JHE0mZNkedjug5YFy8DKy0eTE5dF29L/ HVHLEwS0M4UFXUl64pEiBps60waVVGB5CQBZ9u8OBIlgO0cXtiSTGRYH9/zpK33lxGE2 mUpw== 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=jPQVWjGuDQ8Vy2HoyR3g/5xUPi5oo81Ox0s9nDO9GIk=; b=0FilxgF/YgbaLcqOvSzib0hy5b8vkDFwzanzYLY6/XfAmn1ai9k/5rkTOnH4MvmV+o wNu9msJmxwcT9szp7wRIaqnISM7nZk3RuCX/7mJsEg6P4IBKVZ8TBGRUxO1MIM/G1dvZ WYm4gfqjEvpm9n9PG2oaHMPe37KYhr8aCPsKIN5gJgY1gJVMUktSN3tN2OvnyLhFqV5u ZhtX6fbGnCtXX7JXgUtFd4k8nwdamkuB4PhQK0LIQm7JedjffaIvoVtHvMt6C/jKQQeJ P+NJ3AsSD92e4/OH4Olgk8VyQ9h64tDubBQx4oixvhOVVZJ9ZrC/LGEDPbvoKYWvJ+8k a8oA== 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 e127-20020a636985000000b005134ad5dea2si2033035pgc.0.2023.04.06.13.43.32; Thu, 06 Apr 2023 13:43:44 -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 S240513AbjDFUm5 (ORCPT + 99 others); Thu, 6 Apr 2023 16:42:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240096AbjDFUmS (ORCPT ); Thu, 6 Apr 2023 16:42: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 61845B766; Thu, 6 Apr 2023 13:39:34 -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 F217162C36; Thu, 6 Apr 2023 20:39:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E02DEC4339B; Thu, 6 Apr 2023 20:39:22 +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 55/68] hwmon: sch5627: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:17 +0200 Message-Id: <20230406203821.3012402-6-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/sch5627.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sch5627.c b/drivers/hwmon/sch5627.c index 25fbbd4c9a2b..1bbda3b05532 100644 --- a/drivers/hwmon/sch5627.c +++ b/drivers/hwmon/sch5627.c @@ -379,7 +379,7 @@ static const struct hwmon_ops sch5627_ops = { .write = sch5627_write, }; -static const struct hwmon_channel_info *sch5627_info[] = { +static const struct hwmon_channel_info * const sch5627_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_FAULT, -- 2.34.1