Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp83087rwl; Thu, 6 Apr 2023 13:35:00 -0700 (PDT) X-Google-Smtp-Source: AKy350be0urtCuejNfW0rGpSy8wWRXcAP7F1yEXT6NYMHgXmNL31snXrjDVdjZAXgzpUnWv7gyX5 X-Received: by 2002:a17:906:faca:b0:925:8bc0:b19 with SMTP id lu10-20020a170906faca00b009258bc00b19mr5916614ejb.20.1680813300654; Thu, 06 Apr 2023 13:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813300; cv=none; d=google.com; s=arc-20160816; b=difmdeJLq9rS5yd+/mh58Gk0jz+D9ZBwmeivspMTwhJUKAfnrEjGQpJxdFoNKmgPrk EgLZRT6KEhxsGuKFy2cZt1mMlXsUyXkW13g+QH+NjiqDeHDEQsHeD4Nh7dV/uQq4rEJV fBEu34c6k+pjvwoByfsvHI9ODNDMnVEDSv0uau1qqI1C/2fNLdAPPzNSDpDr1EEiNedL 87WeMl3avvwIaYQZ0o31U4zdrNid1fDHOfxT0rLwV0uIP95aNA17nJjC4bdkmYnOMrwH l2prsMA82b8/n9r/ySV0WUnoeLTUSVyMLxrqyXQotW2+9kMVcw6Hu4CdjAIpHfblkddv kEqA== 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=/VbBbLUbmYsB9ePpFHrMBDx88zoFjkZCXjdqcN0U5ek=; b=Liltx064Hywk8I9VTSn6GvqmvfGwmat/3hyZsdFueRxXtW2ux45OS86eupIcHna0sm XQzcZyaF4cWgAabYmQQ9N3ozt0GK+3xdqDzQ6MZpV9baUwE2yfPRt92ah7g/j6ErEBc4 3OEKwnSK3L4wMk06miNDCFjvU8P1WDEYSf782nC2fKX5ctVPmCuUaU7/H2Q++FG+LzSN ykoIx5kuTrrFEXCRpHvPD+X+uNzJ2qLz/lgwkD2M72C4M31doX+MYsFgpif7bCZmZhIX LCZs3fUBmLpnGSAPNM6B+kgbgKpD5XiCl7MtVMWB5dq10nSsauhKYD3GSd2CraIeYvjA 7kCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZE1rxTOK; 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 pv8-20020a170907208800b009346fbb76fcsi795635ejb.978.2023.04.06.13.34.32; Thu, 06 Apr 2023 13:35:00 -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=ZE1rxTOK; 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 S239970AbjDFUdk (ORCPT + 99 others); Thu, 6 Apr 2023 16:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239694AbjDFUdH (ORCPT ); Thu, 6 Apr 2023 16:33:07 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F3D7EDC for ; Thu, 6 Apr 2023 13:32:12 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id l17so4227745ejp.8 for ; Thu, 06 Apr 2023 13:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813130; 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=/VbBbLUbmYsB9ePpFHrMBDx88zoFjkZCXjdqcN0U5ek=; b=ZE1rxTOK1djFdNdrAhKpMrSEtLAvEiqF1wfNoSQfGz2WRdCnsAec1pqTEs7Aeh4Daz 5hMt5SrvsdLX1fAyDf3lUt/+DfA9sjmR1d6QUjOBHKTVqNJPqrMp57Py4g66QZVmqeot KjrJ7q6eSgPe5k3qHOEXUOTE/1iZa3ULlbig9d57u2pyy7daZ5VYQdBbFWxWpOUnbRJ7 VDlhFQInYWSZkQVNdTVB0VEtF7bx8Smb/GBymNgr+1QwqAW1u2jioBmcY7dQwFG9DQWS KjxVxjzNpMK/Eiwab5e+aRjsnXlglhvGPIdfnZzRxi8UA0fKEFgmHR1Gx/fsJATlPfMN QwCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813130; 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=/VbBbLUbmYsB9ePpFHrMBDx88zoFjkZCXjdqcN0U5ek=; b=ZAFSI3BGi/mlkdV//iEAdz+N7ojv6s9nMSjzdkUICtR0V3sEWr5MxY0TOWz0KHaFa3 CjTW01brl3ggx+VeAQPAEHJ684KjLgSw7vaKhCmeerRXJhMZL5NuHsO1MjwNqZ0UVtUw nS1Ize58IlAjW7wKyFvdbFgCTTe84jda3beBelF5uZtGKaa3n46ume/pJ1+zXdHG/wGS sotGg2strQDE8IqfhduvXbQz8yAYdZXHBP0OYpvCNhLCYjdaPowbaon0f4Hn2vCX7czc USxlhbOxyzwY8+njp97KXyWIPekvE4zQ1AH8ZfEDBHk3Ix1KP49biEJCshEGez0D8qYI QSwg== X-Gm-Message-State: AAQBX9fmtkp+ydJLjt55QrlG/qdyH9/aQ8tM/aZEb+4B8PGIdqEmk9BJ IK3XJMqAXascX/O/u5AAB9N53A== X-Received: by 2002:a17:907:5ce:b0:931:20fd:3d09 with SMTP id wg14-20020a17090705ce00b0093120fd3d09mr7427601ejb.17.1680813130437; Thu, 06 Apr 2023 13:32:10 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:10 -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 24/68] hwmon: k8temp: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:19 +0200 Message-Id: <20230406203103.3011503-25-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/k8temp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index f73bd4eceb28..2b80ac410cd1 100644 --- a/drivers/hwmon/k8temp.c +++ b/drivers/hwmon/k8temp.c @@ -118,7 +118,7 @@ static const struct hwmon_ops k8temp_ops = { .read = k8temp_read, }; -static const struct hwmon_channel_info *k8temp_info[] = { +static const struct hwmon_channel_info * const k8temp_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT, HWMON_T_INPUT, HWMON_T_INPUT, HWMON_T_INPUT), NULL -- 2.34.1