Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp81953rwl; Thu, 6 Apr 2023 13:33:46 -0700 (PDT) X-Google-Smtp-Source: AKy350ZaUWXsL5TwcVRyswFzl5CXdmrOsramu/GEq7VrWKI56uUfEg9Iv1/xWitiLjxadAvNGkA1 X-Received: by 2002:a17:906:c50:b0:8e6:266c:d195 with SMTP id t16-20020a1709060c5000b008e6266cd195mr207839ejf.38.1680813225752; Thu, 06 Apr 2023 13:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813225; cv=none; d=google.com; s=arc-20160816; b=XdWPXoEN9TmUNuIBO4GxG1EUxcs5tsDdsXldL768oMdBYW5p9RydEnw44ZdTA+tLQ3 jvJx/GSHy+vaS5JeRnA8R50CdD1YEYLAucc5zYXG3BGAjtQBU5NmgIHpioPEY9C+mvJO 77RyzRPGEl5w6e1X0GAuDQ8RNE9rDQQPhrGZpioQOWPvr6fQBjGR0QlFXGRNdYQlY/cw uYsEm5yd+xTHPIwBlHViNSt249NrYetg14IbU9l0x7VQPLNNegtIAg4AsnEWh1FyCNBY qywVc7PnakZxi1FaHpJ8pKrayuPg/BmCdSosuhbaABsuMjy15WH6ra60w/jetodEVEFe hC9Q== 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 :dkim-signature; bh=7ymHpZXssNqtDonOR2b4TMkX8XWnhpqpU7TZ/WfwdEo=; b=lilQJVxgazTbtP3LgGOGwMJI51nUVgRjTLPXXGNBg6Bk5D2BpHkpAC128p3C0fXbIO aZl9czlt/pwfYZ4g1eFOmN+dt+am2DMILTDMV3xv/s4IGdwnxm2lQqiDz/7Ecyov9l/X jL4I9zMz4KQSf/rqXTdVPV/dHp2BZydE4KHVCq2UDJFt1D+YzbKBLFqWoOHidfr6pRt0 Dm65WSw6D6F6QXnmspmUxK5T4k/HWrsmevAEi5qTsOYk/J1EdDyAQ9M8Sp9ZwmT+eSYD D0Q3TjL/F+kbYRa5qqXbwWxu7aFEgaoJXO28rlIWeKZXFXlDJ9OFzpvXmNFyR/EdiTAL lIkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZJsDhBuE; 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=pass (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 z2-20020a17090674c200b00934d983a240si1766910ejl.280.2023.04.06.13.33.19; Thu, 06 Apr 2023 13:33:45 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ZJsDhBuE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238772AbjDFUca (ORCPT + 99 others); Thu, 6 Apr 2023 16:32:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239463AbjDFUcC (ORCPT ); Thu, 6 Apr 2023 16:32:02 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32155B45F for ; Thu, 6 Apr 2023 13:31:46 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id jw24so4216993ejc.3 for ; Thu, 06 Apr 2023 13:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7ymHpZXssNqtDonOR2b4TMkX8XWnhpqpU7TZ/WfwdEo=; b=ZJsDhBuEnPU+XWsjRJuN9cu2H5d7cZRGkWPMvVrVibqBEt20qzWv2LIYXtXHwCOpG4 hdNNPRGP6dEHQUXFmMBY+mhG15TWKjdVfHVCFIwnK7DXsTA0xd73GTpMm01GkE6ih1CW a+/9/Etlv1Wj91vR1YQPpAj50OfT26vlQ46X84PlTmP/R7Zi7jp9ZNITIjEm8NV95/N2 LOgS39xpR+dgFnuFtr2sYBTHvSWskgfqgOQe5ux6zNS+nbfb7ogFAOjF/3eFODK755A9 DSBgFlMzJQ2HJgjfexIT/HhFUQFS8LZrmzjq6p9XDTl5G0tRjxwDakBmsoePD+gcMeDl wB8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7ymHpZXssNqtDonOR2b4TMkX8XWnhpqpU7TZ/WfwdEo=; b=6GE0GmgI4/F73DKOF540fTEL95tWr7/f3QBtrwHB9UBeMXXJdyDtCtEwLRiUs0TiVL gI5kiG3lrQicpA/pwmpNWSE71SCkWq36AHTDq0pPFqliDonNHAlJ5f2mXZ5svueZTOok HdgdaXcMOvEcHtqrvToDF2F09F+8HH8sZI7HBmGN9Q9EzFa5DFWK/i/H//pY9L99fjcb gzoA+pxt1O5jCQJ8RQodFRgyL9VMJygtXoNKukhV1NqJ4KOvXNSokvOcD5JO4eXD/h61 AEXSwMBgARf5zJAjcTPmNlGUZ7hxeauaP1d8Ci8L0JTS0j+ned0WlcIP0Vg6zxAZ0RSa ay8g== X-Gm-Message-State: AAQBX9e83A1LDMnt6lPvkYYlcrVPjBOtplWDNK0duKXzfWAFEwHLDe2e upGAkF8N688TuK5D/TsAjPv7nQ== X-Received: by 2002:a17:906:442:b0:932:1af9:7386 with SMTP id e2-20020a170906044200b009321af97386mr135600eja.27.1680813104409; Thu, 06 Apr 2023 13:31:44 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id s4-20020a1709067b8400b0092bea699124sm1210330ejo.106.2023.04.06.13.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:44 -0700 (PDT) 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 , Luka Perkov , 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 13/68] hwmon: dell-smm: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:08 +0200 Message-Id: <20230406203103.3011503-14-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=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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/dell-smm-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c index 7ac778aedc68..44aaf9b9191d 100644 --- a/drivers/hwmon/dell-smm-hwmon.c +++ b/drivers/hwmon/dell-smm-hwmon.c @@ -920,7 +920,7 @@ static const struct hwmon_ops dell_smm_ops = { .write = dell_smm_write, }; -static const struct hwmon_channel_info *dell_smm_info[] = { +static const struct hwmon_channel_info * const dell_smm_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_LABEL, -- 2.34.1