Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp82878rwl; Thu, 6 Apr 2023 13:34:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCgAeGnkFdsEcQe0M1ETmjgEeDe2sajabA7COhClK1SpaTAY5iMGYK5cU/k2OfiUCLU0oV X-Received: by 2002:a17:906:f18e:b0:8dd:5710:a017 with SMTP id gs14-20020a170906f18e00b008dd5710a017mr211859ejb.4.1680813285543; Thu, 06 Apr 2023 13:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813285; cv=none; d=google.com; s=arc-20160816; b=GZt9jyo8506XV5ipfyMXno48UbXozNIY04w3b0y66j2WGWki3vGuIxb8F3TEpv1LaP wDSiZLL45HOs8mWO5BGEVqZ7fgfGPD1EaolGFFobuhulMTSMb40nHxS/RBUIrojLj8z+ LnuJ8vGzTaOFXjngtV2L3z1wBrWU2y9sC0ZOuuicFA77o5kgp4ky83hN0/F6Jrgx0A/t nAIEtkHuYzZLtnyLKPNjDdNX7z0fpJ05Bu5/UJdnaG6OliOqyWUU+8lotT8Nj2qsGRUM sVDN2AtU1OA2vFtteBsJUfCnDn0uZar6mnqBBZHfaK4vQW0XrETRhB9QyaVrbpY7s7GZ dY+w== 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=TXFOj5XP6GGH/xdoeDcQ495WqTsc3jvxQGcIULPs+bA=; b=jsLn2LykMTUXqNuuK5a1P7Wp1OPHoUT5vfS5WGDjejwnGP8SVG2agvaLeDQXwtcVs4 VSmvogGSBKQ8Si78vHNgnY/PPG0uV6TGH6sMWy3mbrUFaEibEzLLE3qUtZZlBgPRFNTa r49Kln8sRTot1ZkbyzIOrYEpiyRg6x0t7p0q6bULpU3EKlQ8dUE3/jmtGU7QppgZVx+K cMx67ruBjMmIs3/eHdz+5XTtii0+t7YKf5ulC7ojHrXpdNnhMDROOxkCBCq7iV7SjOTt 3pQXY/Kz3LKHZtBGRiOkvNti9BB+vZsJtsvfjxIuwcsW1G2kizYmTUQ9ukHYNA1qfLLy 1VLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tAH530Is; 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 ck21-20020a170906c45500b0093346a7ad4esi1820412ejb.1005.2023.04.06.13.34.20; Thu, 06 Apr 2023 13:34: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=tAH530Is; 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 S239864AbjDFUdh (ORCPT + 99 others); Thu, 6 Apr 2023 16:33:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239552AbjDFUdD (ORCPT ); Thu, 6 Apr 2023 16:33:03 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32876BDD0 for ; Thu, 6 Apr 2023 13:32:10 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id l17so4227558ejp.8 for ; Thu, 06 Apr 2023 13:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813128; 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=TXFOj5XP6GGH/xdoeDcQ495WqTsc3jvxQGcIULPs+bA=; b=tAH530IsOfJwLPhjCRb2a6QLiFZ+A4sm93VHs6F2KU1UpCdiHUfq/w8KyepLOuG+JS VbATh4yTNe18i7hex3ZgKFUkiw0ZZ0yFZHXb5X7VEkIjfQR+3rvf81XZOl3L3/ZXg0Ak NfRF92uZAuY/FFvihjWGdG2NzU2+mHlC6Mb6bsTEraHlg1z+GeNKIaTVsHCBgW++TR4l I6knMQtQhxoBs/FZFfoVnQbbqOXa6WHlTFCxboFnXtYLlqzpXDH50kxvOtHQAFAAo30Z XK27U08kPOKn3KmigfbSCVEzGRhYqcJHuaBNPL1V6om3YrBPNsBUHnLqkBtgWk4SJvxA tWOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813128; 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=TXFOj5XP6GGH/xdoeDcQ495WqTsc3jvxQGcIULPs+bA=; b=1/nixRuwacoO7XPGSF4J0/V+oyZoovYjHeyc+j0veC7XZeb23igQq6uuHjl/e4wE+W 61r7Gn2765cXIR9PKwGcdsrrOa1R+th3WOQ6LEJVJXITvcNEBoPe3d2Y2gGqACRPg1rf LznQjUoCgduPcu3Xh7FhpIROVWO1iXvAC4G7Q+s/MF2+jXoFKHXX2DnneC3uqKgB8q/N ulYYepF1FxSYWTHJfgok82n2yUpp3erOXCnM3oWYARq0mLwsIdOYViAiEqYWgTVaMyqF GXtTgnclAubOcqN6xICww/GZx7bKgy+rfLYJHb3yk50+w3ClaQyXFiVAoyO0nOX8QPa/ 4JDg== X-Gm-Message-State: AAQBX9clAFbPgqAC3jKeobVA4zWsphT4HbvNQQi88xpw5m3lQtqYQvtE /fspOxDF4aldyYy8BHVsV9LkXQ== X-Received: by 2002:a17:906:68d7:b0:931:99b5:6791 with SMTP id y23-20020a17090668d700b0093199b56791mr105268ejr.72.1680813128037; Thu, 06 Apr 2023 13:32:08 -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.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:07 -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 23/68] hwmon: k10temp: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:18 +0200 Message-Id: <20230406203103.3011503-24-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/k10temp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 5a9d47a229e4..df8f08740c1c 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -332,7 +332,7 @@ static bool has_erratum_319(struct pci_dev *pdev) (boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_stepping <= 2); } -static const struct hwmon_channel_info *k10temp_info[] = { +static const struct hwmon_channel_info * const k10temp_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_CRIT_HYST | -- 2.34.1