Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1336rwl; Thu, 6 Apr 2023 13:43:48 -0700 (PDT) X-Google-Smtp-Source: AKy350ZDP6ikmC1VGHmZu4Oen8NG7c08PB1ZTtmZOAUtTZtUAmlYJHxMdHr3W7GsbpeCffGkjuwM X-Received: by 2002:a17:902:e549:b0:1a4:f7b1:12f1 with SMTP id n9-20020a170902e54900b001a4f7b112f1mr577975plf.4.1680813828407; Thu, 06 Apr 2023 13:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813828; cv=none; d=google.com; s=arc-20160816; b=aWeDlRfcBRw2c/3xGAj7uycHxauZ+RT/SHIXe6burv9oAjvney38XnnQfV9Aw0NEra 0toOt/245oQNLfDOZ9l5BP8KbWriDGTBqrwViW4YwU/eSZvum7mHeFcJrkihhUmYqP6O BL48nWGmhobyRDX++AuZ7Mo+Mde+s1ySJvhzgXWo0Na+A5WGnT9DaDtKOJQSasPpozCK DSKODIp+bgYgAWcQ2rrSBVVnQEinC7WKUKh9VHRMqWTahn7eNquLCKEbem1HJgSBrENS YZD/28vpLNS3WUN4lhQ/52SEAgqnWly+XiqF8/kVs9FfViPqwjS4WTyqEpeiVn+a79yv KvJw== 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=hJcFWFE0TSZSVix1UlTo5ie9J4NrwcmvU6WNP3Wq8nw=; b=huKJP4owIyW/n28MSts8RHeqVW8xAXIaXqzCo4Hw/nQPDticj7sERDw4uoWlBQWS1j mcEUBot1NNzDah8oFiL4mrClBKxYipuDWF+VxqFo7xonVVuFf4wcGZBbcf2q3efPvKFz OjWuEj9FLlpU8J4OjKl40lKnC5jjdT1utcwC0Qc/1yxBP1nH3T8xqWvji1Trxe3kiaXK WvEc3sgH5zJVwwtIEXdIKIb0LFj00xK6tc4LkvuKOGspYx3Xj/qy55luFkpv30Ny5GFF hp8ARu2BHupuKELmBFdNXOfNDyk9OPPatj4c6LDbTi4LRr73vu3Mw+deaN6X/o58sF9i DBnw== 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 kq12-20020a170903284c00b001a05f90cedesi2307660plb.216.2023.04.06.13.43.36; Thu, 06 Apr 2023 13:43:48 -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 S240534AbjDFUnH (ORCPT + 99 others); Thu, 6 Apr 2023 16:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240366AbjDFUmV (ORCPT ); Thu, 6 Apr 2023 16:42:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C555C19D; Thu, 6 Apr 2023 13:40:08 -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 55E0164C39; Thu, 6 Apr 2023 20:40:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02BC3C4339C; Thu, 6 Apr 2023 20:39:56 +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 58/68] hwmon: smpro: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:20 +0200 Message-Id: <20230406203821.3012402-9-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/smpro-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/smpro-hwmon.c b/drivers/hwmon/smpro-hwmon.c index a76c49dd8438..d320adbd47f4 100644 --- a/drivers/hwmon/smpro-hwmon.c +++ b/drivers/hwmon/smpro-hwmon.c @@ -385,7 +385,7 @@ static umode_t smpro_is_visible(const void *data, enum hwmon_sensor_types type, return 0444; } -static const struct hwmon_channel_info *smpro_info[] = { +static const struct hwmon_channel_info * const smpro_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_LABEL, HWMON_T_INPUT | HWMON_T_LABEL | HWMON_T_CRIT, -- 2.34.1