Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp82872rwl; Thu, 6 Apr 2023 13:34:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ZyV3M8wQd3fpgDYlFeh2jVMW8GxNYS42wZqpSFNS4K45h4VJdHJtTqeTGbyys2hvpBmfB4 X-Received: by 2002:a17:906:4e0e:b0:947:a6d7:e2b4 with SMTP id z14-20020a1709064e0e00b00947a6d7e2b4mr229713eju.8.1680813285375; 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=TnZoZo78q7t1L7MxY+rkSW2sMgs3/WMTHo3cOFD4NPcQI12SjujDjQmeKzb0x/AODd lbyWo7u25LkkuIqi91F9W4qcCD/wQ5gCHZUaSd7XpXXXGzL5E/TqbzV5oLSf5ZG3+5dR Ya3zl97sGKMz0/+I7SFmQDYb8Uew85Qpb5Cvw5+nTjWGSsXIYUujeIlng/DUK21lbUbi qwxoeO84gH8pcUYEwQYxLaUVuRPeStyU9V45BiNE+Yt4erMj/iyqQE9cu6r2xyRIEBEs OQCKHKO7YazrAeVwoWciKaoHx9JeDS9NdTCLJQ2y4gUn5TJN+Pt96Yw512SdR8HLw2sY FvPw== 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=oNHFEWZE2izMo2eONaxZOZH9mOc3OpiNVeO39Ug9Z/c=; b=xth1pn+Ag/boi0J6MkpfCsKen2dPar+qTfz9biLMa3NEem8Sk36qUZ/2XX0F+hzPDf K/XLtSKKhkAt73TrzeEX9losFsHN9XfBvxhwjSXCmr2+cAXHNd8bv409bv1MfRqLGle8 SAPzjKFUuxg61ffXI2xXA3GavknvIqH1oduGtNpcKeCuhEV5zgM50HMJFHokBw5cFzzr Rk/YEBtDw21s5gllMFKzxi8YhjI6rvidIv64qh5iMlkOnYklc5S4xoZUKMudc7+0gXiu TmQCsEanus2D2TggE89c8G9lUF524tc5ZvveRYVdGLwGhmR5hS9Q+uoB61nZSA4kLyBO T7mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZoD/OTkA"; 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 r21-20020aa7da15000000b0050232b70cb8si1763598eds.326.2023.04.06.13.34.18; 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="ZoD/OTkA"; 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 S239797AbjDFUd2 (ORCPT + 99 others); Thu, 6 Apr 2023 16:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239741AbjDFUcy (ORCPT ); Thu, 6 Apr 2023 16:32:54 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 452F5BB99 for ; Thu, 6 Apr 2023 13:32:07 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id n21so4222054ejz.4 for ; Thu, 06 Apr 2023 13:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813125; 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=oNHFEWZE2izMo2eONaxZOZH9mOc3OpiNVeO39Ug9Z/c=; b=ZoD/OTkABYZ0aA1MRcHeIcK7uDNGCJaLBZMiRQKM5KVhVJxZJFIclNEyGRxL9XRvkS cIyw6RpS276Iu+tFnk7f4ww+TNKvOaqa/2Tx2FtZGbAPoDRaGr+Xwa7iqOrf9rklzUZr 2A29SMrSzU7EjqK5SlV9oQtlSghV1HJQUMJzdLn3i6eXYwdK5bhx/e437w+x+9gc5yhe ow2aRQMaGQGFl6Kt6uIKgRJ66jzn6uyKggl+bvEPLFyXNONVWyVPXg+B5o+q59E0pEa5 4S/Vvfj8AM2V5v50Ot7caixW+ZjzHqCnv57G5IdXvcEVSf94wuQtXLTBN/6je+YKAo2h lJyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813125; 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=oNHFEWZE2izMo2eONaxZOZH9mOc3OpiNVeO39Ug9Z/c=; b=7BV4tv1zQuzTB3fe528yb2Bz2pUuS/NxFf19Ip8pY1j+I6nYTvXGNLMkMA4ASyZ4HS Uu/UR8PwDGSdIWdOjmL92fquNN7H+J8rym7dWDV85ea++qBGLpHuMM5JduByH7XnPeQE fVMaZfSJcoJu1Rwmnoax3OZlgRs20eDDDLLfj864FBeMWnzQl1aEPHgIOcuf/pnqSSZn sJD+7sBPGgUPNaMFrwBZCIZzKENcsNKc79Qlxj6Mn54Jd+9HrYNr2PQ5VRIxHEi49gqx PaD+gj0YRFYJCXuUz+/zll4z/+X3NqpbwBjL8KNEJLPxZa/qG0Y4Ub9upSz3AOg0R/vw VTgw== X-Gm-Message-State: AAQBX9evGmg6YpHf9xbA7NoYY7GZygaUajcE9mrZ+drYBqHxKa/OEhHx TVQ7neaXKiPKDL5TCSeEPVzGDg== X-Received: by 2002:a17:907:210f:b0:948:a975:c79c with SMTP id qn15-20020a170907210f00b00948a975c79cmr227039ejb.15.1680813125719; Thu, 06 Apr 2023 13:32:05 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:05 -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 22/68] hwmon: jc42: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:17 +0200 Message-Id: <20230406203103.3011503-23-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/jc42.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index 8523bf974310..4c60dc520b12 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -450,7 +450,7 @@ static int jc42_detect(struct i2c_client *client, struct i2c_board_info *info) return -ENODEV; } -static const struct hwmon_channel_info *jc42_info[] = { +static const struct hwmon_channel_info * const jc42_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ | HWMON_C_UPDATE_INTERVAL), HWMON_CHANNEL_INFO(temp, -- 2.34.1