Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp85071rwl; Thu, 6 Apr 2023 13:36:58 -0700 (PDT) X-Google-Smtp-Source: AKy350a69765FYAwccFIPYwIJvuANV8u+nKauzeK+M8g3CFeI7jb9YoxBqwWIBbm2PxOsLTpmbPr X-Received: by 2002:a17:906:953:b0:92e:3944:716d with SMTP id j19-20020a170906095300b0092e3944716dmr210071ejd.3.1680813418224; Thu, 06 Apr 2023 13:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813418; cv=none; d=google.com; s=arc-20160816; b=uztt9S4Iwy/JTSVGvvlopCoYPuGvoTWRo/Q7TM4/2iT3LjJuaYtLtb0mqw+5S6Lrny Y0HPCXZbB+NGQ9yv0JX34RUf6iSo+cC61zDwbmCRqaK3XoF3/4GrGDE8Cy6h4gtXXqCU Q+8tKMsKYpcdVXVyXvXjcE9svalDt2usFpH71CJSVRVNIpZbPoWcp3aWQYJi6VjRO/5r zdJibOzIqx4Sam9cVle5zCci5CAnKc8INuitCGt+J24Y7Z7ZY9alqZGLMCMln1Jk+VfR ZxZl0hXd+saH6PF9lPEN/KBuXh5nSYKCNu94R25oFEd6PQvFB8GpDgG8ZKHrgP7OT/9c VVQA== 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=yu09rRuq25z5vSgNy1uvwATC8+EvP1JWMz5329MS+70=; b=OMTu5YvnmivmefI/mJIm5mk2f8qN1Eq48tQyCyFji2WOIILWv3I/viblTCmirwDe55 LVwj0rrkgL8AxNGE+NYxDFQjwqOfOWrQa+zt5bjXWdvA5QDL6bDkTaKh6liAx0b2IaXi v5d5hsRMbuZrN3qmcWPTb8v713v/zErx2GweySbdtwX7gy7ddGqJf6NEpozy/AfAe3rm mysxj5swrP4aXMJsuJ9OxRsx4VM5ZqRiidbynQM/6M2nnByLgVHgvNXaBvhvn4PY6jkR FcGlHS3ExMKUT5B36KSgMZ70lq2MEvVeAuoSURrprvrXw7eO8zQY9oSNFQvfe2kUfGvx sO9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Er6spU2u; 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 gs6-20020a1709072d0600b0093338c0f70dsi2351444ejc.117.2023.04.06.13.36.20; Thu, 06 Apr 2023 13:36:58 -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=Er6spU2u; 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 S238742AbjDFUfJ (ORCPT + 99 others); Thu, 6 Apr 2023 16:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239501AbjDFUeh (ORCPT ); Thu, 6 Apr 2023 16:34:37 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFEDBB76E for ; Thu, 6 Apr 2023 13:32:43 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id l15so4223791ejq.10 for ; Thu, 06 Apr 2023 13:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813162; 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=yu09rRuq25z5vSgNy1uvwATC8+EvP1JWMz5329MS+70=; b=Er6spU2uAbZju8iYd4yhN6tt1CtOtNQzNFT+yYRHnRP/5jjQX8N7RirDF6DGIA2kQC 83ax5VbrN5FgKerCnIzVQRZMjJexJomDZ6LtuwTtKSTbMwGHrnnNVDHjqvBC/EN8X/Av wjwSqiHeFGRx+IcD7T0WLfTlgtbcbe3vbzRL0pdLBB81Ib+1n7Bs9v01REshrVjYUxiS UhPaAOfCNuKPtZn1KxaQw0H3ZXwUYN1XNJRTjDD/yoH9gkq2ZblWiqGCH1tWaQABrTzS 8aRY2nKPl6D1rzBKjoDf4j6OlLG0MYNalyJU9fGGy0+Oos2YirdAkawRLXpdBI96qpZ5 utOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813162; 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=yu09rRuq25z5vSgNy1uvwATC8+EvP1JWMz5329MS+70=; b=I2rLLKBSWtzrtHqgB0F4lCB0TAYIuf6+k3nOn/QoOc4s2C813luJVTTQy/n/6TF4gT QOBg9h7f6q1Omx4XPYp7IuYSMIb3XyLfWqKcNHF36tTvE6gPnUX9RH+lGYhdfeaqsRop R6MJ5f5ragKaiXYgfGTbo9lEWMsChzamsYenD6v8ioWPIVnzlnWmVgaXYwZyrIwJitEO EnbSoxVBGLZw7KsvQONntko9sJqrgMF/PIqugVyLYshVcX74c2W4A2wzr29pOx7IuZ1i 9kJX9jn4A1KGxUwl1NTH0q/Ut0/BHtZXml2HtJK89wgyNBnm9crxHb71E+1f1u1fnXrK 99RA== X-Gm-Message-State: AAQBX9fLl8pNDJc/sF+toVPa0YdCljhjxsCUrr++/KUltWPCEUmRPMQN aQnU6tqkwKqGpKvtSZLdKB4RSg== X-Received: by 2002:a17:906:b206:b0:932:5f7d:db33 with SMTP id p6-20020a170906b20600b009325f7ddb33mr128737ejz.34.1680813162311; Thu, 06 Apr 2023 13:32:42 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:41 -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 37/68] hwmon: max31760: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:32 +0200 Message-Id: <20230406203103.3011503-38-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/max31760.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/max31760.c b/drivers/hwmon/max31760.c index 06d5f39dc33d..4489110f109c 100644 --- a/drivers/hwmon/max31760.c +++ b/drivers/hwmon/max31760.c @@ -318,7 +318,7 @@ static int max31760_write(struct device *dev, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *max31760_info[] = { +static const struct hwmon_channel_info * const max31760_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(fan, -- 2.34.1