Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp84075rwl; Thu, 6 Apr 2023 13:35:56 -0700 (PDT) X-Google-Smtp-Source: AKy350ZNMqEsuIWfCBHKXpZ1JDsCVfy2y6TMZmgHGXyfqlPntpp1uS/TEw9jSeZ5XT/zn+pTHQxd X-Received: by 2002:a17:906:f897:b0:8b1:7eba:de5 with SMTP id lg23-20020a170906f89700b008b17eba0de5mr6545576ejb.10.1680813356653; Thu, 06 Apr 2023 13:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813356; cv=none; d=google.com; s=arc-20160816; b=HLZ1aQBtAIK3DHzAo6t6LuXcF1+B3/5+CCHUct7C5QWH+eGA2S0KzQn7N/lEWuPecz aQL8lNJIdLu12TxgtW1xg9esCIfVJk3IwOppU9fmbcyyEdSd4QJIP+kdfWqV6zviP1As W1UmaS7ScdANoWTN0cKUVswJPdAj7sSLQEuiXn9AIZoPXPUX/87TEJ0FxzzKxq5mS5KL cbssBhh4C7Vy/aKHFSqVtza1zfiz4j7CsV8y5OPQnbk+gRtGKwve9Bqc1kcQ6BqHwnsx vf8Qz0+pU4+NYYHrH/1Mxz1MPC6TACNKbx2VbIPI8dG1tYFJsflw2fHLD4OWboeBbS1j 6wXw== 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=ppNE/j5dH4h2kt/jgazVM6wfbsekqqd/ryXw3i4bi1M=; b=n6374g7fV6BfFpq8drYwM3qR6JcynjF5aa0l6K7qYntO1JSIvyT+yeoc0vV/8zULVt 4/be5p+S2lvWn0216IQF8+scQCvYk9N73e/cWNV4jhfXgVsitX4PGdGNIfzVqxzxl8bL cAUOejNufZ4FSLtB1iz2dC/UZkxbEZTDJcCA77IMl1Mk9qtatMmR9+RJqq9XhAsscwNK 7xdxJoSi4U+URDJ9DngX9mvD97wmBvdHRKu45lCV4+wkPO+6eRoQuH5IaixqhkGE/fvC +BSITwONca2B2n8Pcge+OZ8ulm1GO8pbwGeQ9SDHRVzkQ8OSz4zsb4qCR788hJPTLjNj ualQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cQgako4V; 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 g15-20020a17090670cf00b009320276666asi1661737ejk.793.2023.04.06.13.35.30; Thu, 06 Apr 2023 13:35:56 -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=cQgako4V; 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 S240169AbjDFUex (ORCPT + 99 others); Thu, 6 Apr 2023 16:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240076AbjDFUeS (ORCPT ); Thu, 6 Apr 2023 16:34:18 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38BABAD18 for ; Thu, 6 Apr 2023 13:32:40 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id g18so4218871ejx.7 for ; Thu, 06 Apr 2023 13:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813160; 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=ppNE/j5dH4h2kt/jgazVM6wfbsekqqd/ryXw3i4bi1M=; b=cQgako4VzcQupeFA8QvrnuOXoQ5KeRWJ1lAGsViufDEK8wPY4Nj5S1aYfozyq6/bU/ NAv+2rf5QIGvFjbb0f7CinR03b1RxkXEQ+lyM5bhcW3jfUupKTOJM0+MLKGeSIi/trsn Eta0Qdrcxi7qmX81Um3MTiLu8D/Gu8SNu90BCc3E270I4w3xH3bfBQvomRv/y3/exaWl 7j99fW+W+fbPgH5dvpuwWqDXwEi22ruCJXJZUvSo1epPn6D7ExpksQ4JsvQ3LxBx/IeP Ax1fkWw7nAUpf2oIGXMHplxMFJSXgv6mqpA136lolg5Ek1FMixre+pHiOjWYNQjLiOr5 a9Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813160; 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=ppNE/j5dH4h2kt/jgazVM6wfbsekqqd/ryXw3i4bi1M=; b=1zz8G7gBiZ8FbedBIte0m/cSqRxtwqqo6VMgFi8sZzA+tr6Qr72I2n5x26Ix2hg+Jo wXNzQE8d5IU/f0d/6h8/d8G8K1VQYlOOUSgf63kJ/ZBn91K0ZRVX5D9s5DnuvEji6L85 vCu4Kel8K6ZWF165U9ffGUhHZTFu73kNG1A6E3/nFvaGLb+JDkBOIqCK+oeQJCruCq+6 PgXPmFy107vi/d8PCJ6ZLPsAUEAkdpWYIgCe2r+XYJlMzUSnXrL2VAdegrQsiGkr5Sc/ ozYDgUcMXVNcIEGlSBrvi71GL3AMLfjSSt3d7nQmRC4XK35aeDtVw7INvubFpI2+SzuM pzJg== X-Gm-Message-State: AAQBX9cHRNQc10WGK3Hxz+Y25cJ8lB8LkhbvI7G+IeXNVeGDkq5bGqJQ cMtOp7wx/6D+2aTGbot/rpo9Dg== X-Received: by 2002:a17:906:f142:b0:948:f810:2960 with SMTP id gw2-20020a170906f14200b00948f8102960mr6266458ejb.22.1680813159668; Thu, 06 Apr 2023 13:32:39 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:39 -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 36/68] hwmon: max31730: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:31 +0200 Message-Id: <20230406203103.3011503-37-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/max31730.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/max31730.c b/drivers/hwmon/max31730.c index 746a767c9fc6..924333d89ce4 100644 --- a/drivers/hwmon/max31730.c +++ b/drivers/hwmon/max31730.c @@ -248,7 +248,7 @@ static umode_t max31730_is_visible(const void *data, return 0; } -static const struct hwmon_channel_info *max31730_info[] = { +static const struct hwmon_channel_info * const max31730_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, -- 2.34.1