Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp82580rwl; Thu, 6 Apr 2023 13:34:27 -0700 (PDT) X-Google-Smtp-Source: AKy350aDrn0zot9nyKug1WC93Belb3TdOJNZp3hJIGPXrhUfBeQUQLj1C/hepMjNknQ9z5Wsx+MV X-Received: by 2002:a17:907:37a:b0:933:9f43:5c3b with SMTP id rs26-20020a170907037a00b009339f435c3bmr136121ejb.59.1680813267123; Thu, 06 Apr 2023 13:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813267; cv=none; d=google.com; s=arc-20160816; b=YfWzH+jbrY78lLvsehnCxTlRKi9Qf8OCo/Nc0jeXSXvCkraCt/EY+Alnl10jVdjr2r eY4S2dgt71KL0oVWdXS/UvMD0hpJA2MTWUrp7ky93E9VE6qtdurywyb+pxyrB0spK35F l5mOQJSJP4LSh7N4dn0h5TpgzK/qu7MrZ1oV4bPs/DSp8rFWKV54eS1yTbHjgE6V5ZJ5 mRv7/XZrYo9M3OxvP4IS8sHW7ct3o3Fm0k+HS/5D9R4IamEUgRKbQ0yRYhQkkRPYRQHJ 7KQwdsc+IETwqETewzZiK4rmQf/IsfMeL9lrBprUPROyUIaUpnHkmG3vbkjefotl/E4B boPw== 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=PC4lsh3OxdQxSxIIAq1gG+FVtJTQj9E469Ai9wRQe3A=; b=A2xUIWvI5MwC0fi813B5NeLsDKXddq9AJ4g/+Z6i3Wa1E+8UZR8DdhvMT407MdVLp9 fLCOSBxaqd/Wh1RSkEPdCx9A9sq4EaaQUQGEClN0lIsNNS5qDoo7/G2DK3KIEndvBBJB c/E4szrJm17GDpq9K7N/9D+6hdAq005iZekMkkZhxQRYMT2xNOg9JgDMKb9E5ZBbUM4G BrOsuGBogqOQhSy4GtAU5pVFjHBdOvwo4LJoHxuyea2xUEf68uLKDMbAOeEkCU3SB/UR y5KaiehPZQG7PSVZKrxgkrV11SFpb7zYcf1VhlWqWZfKc0iH1Obrq6VkFdyTD+se2KgJ ki8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DultCbt0; 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 x5-20020a170906804500b0092bc0619e06si1979665ejw.619.2023.04.06.13.34.02; Thu, 06 Apr 2023 13:34:27 -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=DultCbt0; 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 S239809AbjDFUcv (ORCPT + 99 others); Thu, 6 Apr 2023 16:32:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239444AbjDFUcV (ORCPT ); Thu, 6 Apr 2023 16:32:21 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE7EB76D for ; Thu, 6 Apr 2023 13:31:53 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id 18so4215583ejo.13 for ; Thu, 06 Apr 2023 13:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813111; 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=PC4lsh3OxdQxSxIIAq1gG+FVtJTQj9E469Ai9wRQe3A=; b=DultCbt08k4QHYdtlCx7M1tEdumHHofsamq5Hh/HzlyFQ1sewtCc/+yrgSqzqTWped uA801AmwNoNKbMZLVYIEfwAX6D1b5I0UxdQta5JnE9Rrv/2ASnttqf0wfwhdRvm7onzq RNLyVJCwgzEOVJkVIPEH0eQsTIdelpDN0HlwIx0KMM/eO+CCY5xXoY1UodPv4x6EoUwh iXAiogAx6+2Syuf4miP2LcwPK1s+PuR+mpv67N13skQcGU6JxcbF+UoU13lFQ4IvYL8v uLkFwq+3E/RR7TctaH1m58L5sN0SMQsDwNXFaWyiX8RTLweiduKzQ1odqq5TaC2X+VwR EIKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813111; 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=PC4lsh3OxdQxSxIIAq1gG+FVtJTQj9E469Ai9wRQe3A=; b=cXKrafC2mTGMIt7fQFLji6qBsEIzpN15GbORUIu7mB7Px0Nf96KdrRoJA1T4PienvH Z/DDacxst0uxQQw8EsqNTo2O75+Q33fWKNTQn1m+f7BchojgzZZoWXhyFvDCmCKX25Rl BsJjZtM7soaGvKi45V3JxPX2FTrWZMnb/uTxsc7TM2p6/hJgLQtZz391ne7cUexsRSd+ wfQWB85dyk6GWH0uk9PmFEFAaMtud/AZQZr2QE6Wtc7w6OfmWuqEnk9THNUyfaEyn+L2 0BYPJjU7fzu9DxjeerJQp0mCqaMA3Peee5R99Ya1A1/SN/r1j0rcKwpbEoU4wmQA+sw2 hMXw== X-Gm-Message-State: AAQBX9dmEaH2/GZNSCwldm5HBVW/Kkid3K3n4NeH0C6aOAcYeXPUvr6s oaYC1dRERRPzHJvClQnsKoYQlA== X-Received: by 2002:a17:906:f6ca:b0:92f:7c42:8631 with SMTP id jo10-20020a170906f6ca00b0092f7c428631mr187736ejb.16.1680813111545; Thu, 06 Apr 2023 13:31:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:51 -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 16/68] hwmon: ftsteutates: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:11 +0200 Message-Id: <20230406203103.3011503-17-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/ftsteutates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ftsteutates.c b/drivers/hwmon/ftsteutates.c index 25afd9167a34..f5a4d91a7e90 100644 --- a/drivers/hwmon/ftsteutates.c +++ b/drivers/hwmon/ftsteutates.c @@ -520,7 +520,7 @@ static const struct hwmon_ops fts_ops = { .write = fts_write, }; -static const struct hwmon_channel_info *fts_info[] = { +static const struct hwmon_channel_info * const fts_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_ALARM | HWMON_T_FAULT, -- 2.34.1