Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1001rwl; Thu, 6 Apr 2023 13:43:27 -0700 (PDT) X-Google-Smtp-Source: AKy350b4WNlIEZD6IxxGo2Xx4dURhxG+aI29N65Sb+bW5fTXJXAU1FXpgq29FQd4oi+3+GdPnt/y X-Received: by 2002:a17:902:ec8a:b0:1a1:ee8c:eef7 with SMTP id x10-20020a170902ec8a00b001a1ee8ceef7mr537915plg.48.1680813807129; Thu, 06 Apr 2023 13:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813807; cv=none; d=google.com; s=arc-20160816; b=v8W1BbWp4592zvaYpgAxrdm6tr0s+WpQ6P59CJuIt+EmOts4k6DRFMSAtsBsoHku1f Hp65OMxnUq5Up5g/r7ZKWPVu01Ux5TxZHXRqXsEK39rsBzIz86B0j6o235RD3V4YGau5 Pql6QkoT6oaU236/j5vA82NNoy9UQHcUGrNFwdOjKV2Ho3777O/xbDVS44Jnqv3LS53w zZu76zeXH1BdquhG95HvK3q1E7QlrFAKKA1vH4WikjNLcyWcVeFVdRxOKMIKFC8o1XZX eu9O8uz221AsFgSrGuOOrtv32C82lfLLxQxRksgYQvdEdyrXOtYHiswcYpt7hf1GVQmI huFQ== 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=/o61ddmFM6UVFOwbakVcTRQIcL7EnoglHo5mMfKmYmo=; b=dYfy1EJpUuPSCChlm8s4z65zVR7Gz/YlXcZjJKLSpPl3sfv6LlLZwFN66TDSubp4a5 ErKiPqNTHaFSJt1M8Rul7M3AlZ4+7qZHhgFxQIb/G+uZX7ya1AoxQsEJqS1awFd+dceD CVXPfmK8Lp+4RYK16Bp3YJEvsaV1gWJ+PlBtr2GPXIj53amblMTovkRdonB5FLoso+mM iFx6Wy8e+KGh7NgKTRR+Es1ipSsP45RwN2teb7FOgVi7vwKrsFytl2DTakZ240XSzHtG qDceB9OWRxKhm3d6qDDEIKL+gl2w+x16Bgt/rS4ROt+avdHyncRYhOBMP092Z/XyE4wH g8YQ== 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 m3-20020a170902bb8300b001a20296932fsi2284278pls.538.2023.04.06.13.43.15; Thu, 06 Apr 2023 13:43:27 -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 S240426AbjDFUmv (ORCPT + 99 others); Thu, 6 Apr 2023 16:42:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240423AbjDFUmJ (ORCPT ); Thu, 6 Apr 2023 16:42:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABDDB745; Thu, 6 Apr 2023 13:39:12 -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 DB66460F91; Thu, 6 Apr 2023 20:39:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAB5FC4339C; Thu, 6 Apr 2023 20:38:59 +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 53/68] hwmon: sbrmi: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:15 +0200 Message-Id: <20230406203821.3012402-4-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/sbrmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sbrmi.c b/drivers/hwmon/sbrmi.c index 8ea5a4d3219f..529f0e766319 100644 --- a/drivers/hwmon/sbrmi.c +++ b/drivers/hwmon/sbrmi.c @@ -265,7 +265,7 @@ static umode_t sbrmi_is_visible(const void *data, return 0; } -static const struct hwmon_channel_info *sbrmi_info[] = { +static const struct hwmon_channel_info * const sbrmi_info[] = { HWMON_CHANNEL_INFO(power, HWMON_P_INPUT | HWMON_P_CAP | HWMON_P_CAP_MAX), NULL -- 2.34.1