From patchwork Thu Apr 6 20:30:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 80483 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1295795vqo; Thu, 6 Apr 2023 13:59:17 -0700 (PDT) X-Google-Smtp-Source: AKy350YRW/aDFZ/maWRnQeXTn+kbYRDKFt/Fc31Ah3HqG8N9KAUQZ6tZ5qn5/0Qxl/jRS2dJ6Ups X-Received: by 2002:a05:6a20:7517:b0:db:443b:58d0 with SMTP id r23-20020a056a20751700b000db443b58d0mr661915pzd.12.1680814756847; Thu, 06 Apr 2023 13:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680814756; cv=none; d=google.com; s=arc-20160816; b=KNTK+PL4g07d02oR3uCBQS6lqtciZjeljf0mNAYtE6iiJ16wvtZWjd8f9eB0JXcC6X wrLSn6OriOPhwKF80REhck2JcF5L6QF7G32KN2VNl+x/XzXgxroVhHSkbeHPxuuHbiAa Pxddj2dt7PzKjzfInUBIBX5QoXSmYT+OAmKYTyziVpk/2NHeSZALZHZrmb7DmQOGrNyc IGvWKmGKFBPR//NxiUAu9S2C67DyM5YvdACCzYbIJmxDhq67yqIp7YjXm2fSMBUWCnwe vgwVN5tQEGo3UixXO58/1/AOF56ljyZJqs7Hi9B4MQ1gGgErWxbUZL9B46Y1A75rF4xY P7fg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 201-20020a6307d2000000b0051320e68179si2188768pgh.3.2023.04.06.13.59.04; Thu, 06 Apr 2023 13:59:16 -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 S239763AbjDFUca (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_S=C3=A1?= , Marius Zachmann , Wilken Gottwalt , =?utf-8?q?Pali_Roh=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_Ignaci?= =?utf-8?q?o_Aramend=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762462014257831224?= X-GMAIL-MSGID: =?utf-8?q?1762462014257831224?= 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,