Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp18470rwf; Thu, 6 Apr 2023 13:41:41 -0700 (PDT) X-Google-Smtp-Source: AKy350YqPrzKui1MIyi5LaAbgzNrlfIGt9yMJn8r/zlS4VCUAdQOHlzwEzeaRsMDwHCBvq6TEXJT X-Received: by 2002:a62:38cb:0:b0:625:e3c0:8a58 with SMTP id f194-20020a6238cb000000b00625e3c08a58mr317754pfa.4.1680813701516; Thu, 06 Apr 2023 13:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813701; cv=none; d=google.com; s=arc-20160816; b=jaXaVFUqFj5O107sEAc0+nj4aKWaV0fNxqMDICRWRVzv1MIj2FGGiEk7gKpqKeUjsD MwU8aeKdnk0mvADl7YBNog6yvD441rBHYpneKYRsSeYlKH8qOOEA7ppwhCzkHXFHTwRr KXTn0XlTuQGKiUfs6Lw2o6K1iavC3t4VgPEOB5fQwVZGEPnkWEj0VNwoMifSRcjJyPrs N7BOBhQc+DQdykP6FD0CMQhD7TaiTRPr9h+vEYs/J3pszfyhoUDqGZtqqgJFkbrP8Snb q1Ie9cZTue3QsZpULlsVQQyWl206ZNYtmQfXAfkJ97+M3IwCsGskLdE4FqP6+sYd3KfG xz1w== 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=xZYFcK0ax71nEEZDb2mYakT2CbDPQp64q7PBTi6gPHQ=; b=hcWZu4kvuqhvaUA2b8ddt/knuEVhrv1aAoK9NkX1z5kk5X9vRsgHqKXyk9kVr6UtIX HdX3B+wGjts4Obuejz7noF1EdkTqDXlupqbP5Q/JqaVf05zKB7nLysOK5a3bpo8WON2V IC07+NMuuSO4/Fbg+HFnQGGHs1RQB143/FPdNkSUKSPoAGbxv//YVjHRH2VBkMu4lMLT uPuQvirh/CVFLNXglqQeg6p+JKxV/drDhh6JXAZXhwRKPqBJlvJKjLfOGfiIlahg65Fl QeMGZBj6TpY8FmN6yLenkqN445hgP0e7u5sltfdkjCp9Z0YeZoSzTwglcYrpxDZ2SHnP CblQ== 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 x1-20020a63db41000000b00513929a450esi2109277pgi.123.2023.04.06.13.41.05; Thu, 06 Apr 2023 13:41:41 -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 S239421AbjDFUkt (ORCPT + 99 others); Thu, 6 Apr 2023 16:40:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240689AbjDFUk2 (ORCPT ); Thu, 6 Apr 2023 16:40:28 -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 A2965AF0F; Thu, 6 Apr 2023 13:36:28 -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 4A79760F91; Thu, 6 Apr 2023 20:36:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2008FC433D2; Thu, 6 Apr 2023 20:36:15 +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 43/68] hwmon: mcp3021: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:35:24 +0200 Message-Id: <20230406203530.3012191-2-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/mcp3021.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/mcp3021.c b/drivers/hwmon/mcp3021.c index e093b1998296..a5f7a294f33d 100644 --- a/drivers/hwmon/mcp3021.c +++ b/drivers/hwmon/mcp3021.c @@ -102,7 +102,7 @@ static umode_t mcp3021_is_visible(const void *_data, return 0444; } -static const struct hwmon_channel_info *mcp3021_info[] = { +static const struct hwmon_channel_info * const mcp3021_info[] = { HWMON_CHANNEL_INFO(in, HWMON_I_INPUT), NULL }; -- 2.34.1