Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp81581rwl; Thu, 6 Apr 2023 13:33:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Yi33Ek3xeyYZ2tsfc7aB4R7yg9D40h+cQYqEygsxMre5chaHls+3fLSWzwKkYiAbWNIjOA X-Received: by 2002:a17:906:cec7:b0:948:1d56:c81d with SMTP id si7-20020a170906cec700b009481d56c81dmr187094ejb.11.1680813203367; Thu, 06 Apr 2023 13:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813203; cv=none; d=google.com; s=arc-20160816; b=V8XsqhkVFzVASd9W6AyCfmdUkeFfX7oVsSQrCgnTOJpuR8ngk8rB9p06QTvqAC4CHn 4C7DE6djKD6dAMyNs4uWJb4g2FDTIyCvt0sVCBjBxkL2vJU84N5jqTKQgJhSpoc2pQtJ ILPcm62KESiRdsVO7HDYn4ExzdaC4zjtYTCqA85wiwKcKOIfj/raB6ZjTdyHymfh0vIZ 8gl0Arqv7Qa4xtIGple5e/QDIb6ncGA0dN3ZqcakNRE2wBaUZeNr1FQRHHbhD0zO4Rus 7L15ztwJDLWkugTrWeeD9GxYJaFu8PUsVPqV62nS9r7uEn1DhhJK8H/otEt4KHSwi7LI RSMw== 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=0o/5+RoY1xsbRUDa2AFV0+g4brx+liGdLo6ECyosb9g=; b=CsTsfmZl5jtu4SmYALT7cb0ngCDOU5itOvGCgZLX9g9pBprB3Wmf9RLWkY+3/QD92/ HrHJC66zFfSNT+7KzqZEvNjJrcANhR6ktghsuqqal/FqU/vjObzxnTB3SUBO1C6eFFwZ 9L6dwvb46YSNfFrcLyzJQNqQtBzh1tGowfP61fKzGFcDegDQUUMkahDY3v7I1xtEvdo3 UaZ1eKTHYuJS0apbNhN9msDs1Dzvs+DEZZ9XczWQQi4d1IqhclN9foUAFyv0N5/yYnUd +8jwNbYn/x+tHmYSQcYVYkl7ABVUJAPrQjW8wr9eTAPRJUddFmgV62bgo/y5tPPXC09U /Jfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e1j2ok3u; 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 ho10-20020a1709070e8a00b0094776b4eef7si1145474ejc.9.2023.04.06.13.32.58; Thu, 06 Apr 2023 13:33:23 -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=e1j2ok3u; 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 S239702AbjDFUcJ (ORCPT + 99 others); Thu, 6 Apr 2023 16:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239450AbjDFUbr (ORCPT ); Thu, 6 Apr 2023 16:31:47 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E514C9039 for ; Thu, 6 Apr 2023 13:31:38 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id n21so4219645ejz.4 for ; Thu, 06 Apr 2023 13:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813097; 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=0o/5+RoY1xsbRUDa2AFV0+g4brx+liGdLo6ECyosb9g=; b=e1j2ok3u7VKsR1y6roskcfNxp1+JClKqjk7Csr46nCNqwp+tvujjHQEMIxbTKklgfQ xf1Q+6FoEZZaW0f3QmwUdOlf+txDQNXpyppc7ZPBeyq5F1sEugpq0ioWRrBR/9emC3Qk P0pPSi2jA6Yb5MC3ihtndLjnK427/fl1CpixkdRPS4uuZOXTnJPNT0vYQsShb2NttnKy Qmjsx9Q8X3FnKjQ8PnDQ89IjAC2xYBdayz5zCxdwn3liVhMBr+51fP3qqFdOT03SWUOo jIiHY08xSbx2ArReXkFEzh9RIvmLh3EpyMkqjCofJl85Ziun01chGFqxDu6nxJfbJXsB YXfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813097; 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=0o/5+RoY1xsbRUDa2AFV0+g4brx+liGdLo6ECyosb9g=; b=vRWGzoe+bguyhLGav8Idps3hQF3MtXeli+VqMGalTOzDCD7WJ/Pga3XiOQolb7lZRP J94BY9yEuRnBEWPNi3wfOKaoiMMA2O2CBFpsi3tFumJk1Twhk+0KSvux1eVh782stz0G 1I91YAkCfg4gNW7rdMA3kZQn/o0mtbXG3fe7+gZYP3xB9cJftfcKPCUzs/CjavGX25AP q/b0o0kwMVy5fp5eaWgC7hMJc//vtfo0FFE9wZkJbqmTt/KYYCaQw2EFX13du13szrmk sWgblTi4FZ72YCVY9xijZ01BAtboFOC3ah95Pym4GVk0QMrwCw3Czws7aOmA1Z0xR8PW EUqQ== X-Gm-Message-State: AAQBX9fM+Z3Gyt3MEBKnYY4A3vdvI+QIHFM0JKhozDCQFvoG+h6bp6cs 82yHts3AryxjftRV68Gnjby03w== X-Received: by 2002:a17:906:924f:b0:884:9217:4536 with SMTP id c15-20020a170906924f00b0088492174536mr73325ejx.64.1680813097470; Thu, 06 Apr 2023 13:31:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:37 -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 10/68] hwmon: axi-fan: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:05 +0200 Message-Id: <20230406203103.3011503-11-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/axi-fan-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/axi-fan-control.c b/drivers/hwmon/axi-fan-control.c index 6724e0dd3088..5fd136baf1cd 100644 --- a/drivers/hwmon/axi-fan-control.c +++ b/drivers/hwmon/axi-fan-control.c @@ -394,7 +394,7 @@ static int axi_fan_control_init(struct axi_fan_control_data *ctl, return ret; } -static const struct hwmon_channel_info *axi_fan_control_info[] = { +static const struct hwmon_channel_info * const axi_fan_control_info[] = { HWMON_CHANNEL_INFO(pwm, HWMON_PWM_INPUT), HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_FAULT | HWMON_F_LABEL), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_LABEL), -- 2.34.1