Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp80820rwl; Thu, 6 Apr 2023 13:32:37 -0700 (PDT) X-Google-Smtp-Source: AKy350bNMhrgW+cGDH982PdpNwaR02rh2AQQY0Deo6bSNoxs3Lp61RPYh8q24nS2MUBb1fQd1jjl X-Received: by 2002:aa7:d80a:0:b0:4fb:f2db:a654 with SMTP id v10-20020aa7d80a000000b004fbf2dba654mr846174edq.12.1680813157170; Thu, 06 Apr 2023 13:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813157; cv=none; d=google.com; s=arc-20160816; b=W1zZ0vUCUuidF0yQzm4Wf0oBKiLhd00UYmsK74bmSlTky8zGRIA6o2rUhkXkUGvsE6 FB3wo0+c3+iPNcVn4EFRhNfM2RAqkRN8Smxc6m7EyzXIkQ+LMVCMT3lMsiCMfzo5FLm9 oeEWUnGs8yoMhEFYJvZA/mIar0nP1YcD95YS0ME1ZpiZmyoeqiB+P10IVwqtaU/3cNIn p23u/Z78/OdF97txd+X0d03UDGEK9A4yu1xtbTM3DDs7Og8u02eBYaX06RUqX/ta5e8p Jg01ffgvektculLqJ2hQrIv6gA/+LhoOuEb/NRFLFuQ4yMzv/Ohq+N9IdApaTSTmIVBF o1mQ== 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=A0S7oRwHDmE/v1QzsyFUnvANXxR4q9mBgaxgNL4iOGw=; b=JeBuCbLvIIMojozBLWt4+Fq0hULOWHuvw4HO84KJAGhfywSlIxtoWy3ZhTYjlGCoTp G8pVVbHMcY03xoomPGxM/7VZz4U+MGVJX402Z+qTkwAV4fF5vf4+g9Smk8rNXvchtWz3 1bdyZgsDJ4BqjG90FhgysSNEi1GcWhFPXBHZGCoCHq9EmWu386uat+5G+02+wz/5UBfD HtuFHVF/ig3Ndpu4HG6DMYpaqtS054PpaeENUqb9QgA2zLM6HYhgVrNHn6pf76E+L0fM DwaHqZQZVxlyql6EsSah+gR4aWdFzmUOo6JznRgfS1NQonQGDboN2pW5/GMTbLSmPltw aeZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dSxWdns0; 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 k25-20020a05640212d900b004fce4843227si535475edx.328.2023.04.06.13.32.11; Thu, 06 Apr 2023 13:32:37 -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=dSxWdns0; 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 S239491AbjDFUbj (ORCPT + 99 others); Thu, 6 Apr 2023 16:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239373AbjDFUba (ORCPT ); Thu, 6 Apr 2023 16:31:30 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D33EDA5D9 for ; Thu, 6 Apr 2023 13:31:27 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id 11so4210761ejw.0 for ; Thu, 06 Apr 2023 13:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813086; 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=A0S7oRwHDmE/v1QzsyFUnvANXxR4q9mBgaxgNL4iOGw=; b=dSxWdns0zP2JtxETHi+2i1PXtp1GhQ++8Uh+/BzvVOX/h40Wie8Jn5vp75LFTFpHNY S/tT3An3a34mVKPyZE7LwjH24KSiJ5MANXMqiMQO9OvoJCYNYV8xE/gmaT0QiIpYfZ08 6VRP7Wa+KHMRdAZvx80i2qebnP12as1I2Zh/+uErn6lZUOj3J1NF5cUDGuEVTvtVgbX7 nXm1KH6swfdIG0ZN9BP0rik1nN/vgw+QK+XZuEltNP/LtufMw+relNzHZBwVNaoJjTd/ BCGIsdJFmtTDzBjYsgn6JMfoSwyuPpTj5kPo/LAL6nxCZXHOr+L8abF9DW0rNYuuxxl/ BhEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813086; 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=A0S7oRwHDmE/v1QzsyFUnvANXxR4q9mBgaxgNL4iOGw=; b=QvHiBHMMu1n5Cu83NRwYy5us+mMj30hrOePG5xwgB4sktEz4UpDc066N0GGhbCw7Ou jwD6k0CeExVza5lZV2wvGO4YA8Xz0gRA3A4LfgX2wdDW9IYhBrDTZ9W7uzXEkYJsmSOc rf0dLXep2Qxu5bP5U84AUTXmSIPxTvb2z8zalrtiamGLmEhhmT7MScA5Wlb8AdbJKcuk UgGLnZpLbPl9IHLeWi03+Cp3r3aLwdRp7TmoXM60f7Q/LwYrcV+4TtV6RKAGnoRPxB3X S+pvOo+g2FUheMoCUNnrn2T6lOe3B9W7chqN4HTyg+aZY/lt93z6m/Mr1peBB/itWZZJ DZDA== X-Gm-Message-State: AAQBX9fA/bynOo6kqTsEyLZvjSuEnzrRMulUsL43j88shnjssmi3PV3x vDNXvVKGtbOIuktwIzaMsct1aQ== X-Received: by 2002:a17:906:844f:b0:877:8a55:2a26 with SMTP id e15-20020a170906844f00b008778a552a26mr129746ejy.60.1680813086034; Thu, 06 Apr 2023 13:31:26 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:25 -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 05/68] hwmon: adt7470: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:00 +0200 Message-Id: <20230406203103.3011503-6-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/adt7470.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c index 927f8df05b7c..64f801b859ff 100644 --- a/drivers/hwmon/adt7470.c +++ b/drivers/hwmon/adt7470.c @@ -1187,7 +1187,7 @@ static const struct hwmon_ops adt7470_hwmon_ops = { .write = adt7470_write, }; -static const struct hwmon_channel_info *adt7470_info[] = { +static const struct hwmon_channel_info * const adt7470_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_ALARM, HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_ALARM, -- 2.34.1