Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp83712rwl; Thu, 6 Apr 2023 13:35:36 -0700 (PDT) X-Google-Smtp-Source: AKy350bUwYonZQstJFhWCJ+20P8YsCyOv7MihrHg9BAQYGkLDuoIayRdlUNjdioKAwvJDevpyjOA X-Received: by 2002:a17:906:7c03:b0:947:abd7:51ba with SMTP id t3-20020a1709067c0300b00947abd751bamr115707ejo.34.1680813336441; Thu, 06 Apr 2023 13:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813336; cv=none; d=google.com; s=arc-20160816; b=ZhiMGlgluA1BqbHXIlqlQQoLU1HfIOLdA7B8BVmqINjfRsWApsHyTRvm5Jyr+pRtPd p1FM/tQ6hQk7MfPuoGvXj95JvUEOVbEJ2AjvDrAAaSwEp/bvs+hARakX+Y5tj4V84EJQ RtyU935jQspwttx8uKfpKEOjqjJACQ7KEkGihBS5QRpmyKOZwcMHHkOVhADZCLr9t+m7 WlMeb+sxFRjLPCvSgwf2eJjITL4y/Mn2up/McSXVNJYyB1JQnL3ASfVxmvQTk6eNTEXt 50HBHKN5AJHS781OWPvkls5GgKhE2RmAMhNmItDt7AR71NUsbZ+fO82hGYiDh6oJ9ulE Azug== 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=VO8RtXIHFkMLE4x+ayYSzlFGwtzjPkL5W8IJ6F0GzS8=; b=LWSP3UzQlfdpmT3n0M3Eea+So2UWWwogRUwTTbsP0vGJAfqlvbJRPqIaK7RpbsGFY0 yMedewHkOtoD13eoeUBX5DqQJumTdFMbPSmYTAsbvtUuYn4X/s9ZhzrBno4a2qM93ZBw Jq2ulzZFzr9Lshno4odHOZMapCUjgGL0/S/2K40EOXv5kKc6PrIQjhv7+B77tvnyS7cx gWaw2Vsk0WHDsK2L8jo2reRi9x14D8Tz5XriDeG7xXjcv3732sv/manPCCTEty5kvljl SvhbjzMS36e1Vom/4M253uhu1sqQID/GdRX+GNLkHAvEC9ndg4MNAJMVoZm+bdfGXZ3S VlXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=apdHVJ8h; 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 p9-20020aa7d309000000b0050050f6e7a6si1820789edq.602.2023.04.06.13.35.12; Thu, 06 Apr 2023 13:35:36 -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=apdHVJ8h; 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 S239907AbjDFUeV (ORCPT + 99 others); Thu, 6 Apr 2023 16:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239899AbjDFUdx (ORCPT ); Thu, 6 Apr 2023 16:33:53 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D91C161 for ; Thu, 6 Apr 2023 13:32:30 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id 18so4218736ejo.13 for ; Thu, 06 Apr 2023 13:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813148; 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=VO8RtXIHFkMLE4x+ayYSzlFGwtzjPkL5W8IJ6F0GzS8=; b=apdHVJ8hSomWaRwNZFrCjodO6msIJ9UHad9g6Lo+PsFhBQMiPOTr2DFzkGODMoxibn dpFAGVlikYfS3JUQ4Bj1RzUJgaJflrGMwCYp8yuRld3y/1Qt2+pGw11b8kJtMiIjeYq1 luj7//ijoJiyi1gw57kdB5YqFbm+uNlRiT8JedTrwsfM/Rrmq2gL3dqTviaYDqr9fnnp 1W44Dn/BiLYDuFNOJvsxyaDhZqUc6tbP9oTr2agQlLTXqG3TmDftmogdaOfBo2XEPhTM rR60MZMcZSk4E8VLgEH/oaBzhF//FHfDNCXLuUsuUuitVyW0kXoHHcQLe9yMWrNgSsEL A6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813148; 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=VO8RtXIHFkMLE4x+ayYSzlFGwtzjPkL5W8IJ6F0GzS8=; b=C3q5vQP8pXd69lCtUtenWT5r0iqE8EIe4usyGAIS4PxbxsWhRoo/gDWIW/qLnTVToD 1ytfH1mp5zgKNchmcdjQFKvnVVnJEMqEp2BXImcUglbqvuKNN1tb+2wb15DQIaBvaAdt FMvzYJqouoOv3Xl6RzdDHXOvtHRjN94dTAnG46s6jxVdewLfzmp8rE7B+JeOawKOKKXN F3vHqEEqx8L7bQxl2bj21EIpKF7nzxtmdhnCpHd48u4u0YfPd5P+y3aySSZoT915Kddr eI+GuRvuOr5YdZY/8hvfZB4qQZ4lx5imW7K/KrUm8qyS/Z7Aie89qs8/G71vszqvqshS gEeQ== X-Gm-Message-State: AAQBX9eTAufvE6NKw3/nVdgZHBSK2CwZYqrMCgN3F3OYmNioSo6v4F/v Kj8QGtpxX+InuP/B/O64GHD+YQ== X-Received: by 2002:a17:906:55b:b0:93f:9b4a:12f3 with SMTP id k27-20020a170906055b00b0093f9b4a12f3mr222010eja.10.1680813148417; Thu, 06 Apr 2023 13:32:28 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:27 -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 31/68] hwmon: ltc2947: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:26 +0200 Message-Id: <20230406203103.3011503-32-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/ltc2947-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ltc2947-core.c b/drivers/hwmon/ltc2947-core.c index 2dbbbac9de09..d2ff6e700770 100644 --- a/drivers/hwmon/ltc2947-core.c +++ b/drivers/hwmon/ltc2947-core.c @@ -901,7 +901,7 @@ static umode_t ltc2947_is_visible(const void *data, } } -static const struct hwmon_channel_info *ltc2947_info[] = { +static const struct hwmon_channel_info * const ltc2947_info[] = { HWMON_CHANNEL_INFO(in, HWMON_I_INPUT | HWMON_I_LOWEST | HWMON_I_HIGHEST | HWMON_I_MAX | HWMON_I_MIN | HWMON_I_RESET_HISTORY | -- 2.34.1