Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp81410rwl; Thu, 6 Apr 2023 13:33:14 -0700 (PDT) X-Google-Smtp-Source: AKy350aegBDNM94GsKqYrbtuTSkYBmfQV+s+gg2VjS2sYNchi9ywV0YRjQq03q1VMcJjgRYZHJRJ X-Received: by 2002:a17:906:2612:b0:932:c1e2:998b with SMTP id h18-20020a170906261200b00932c1e2998bmr187838ejc.15.1680813194223; Thu, 06 Apr 2023 13:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813194; cv=none; d=google.com; s=arc-20160816; b=FxqAJm3phv+69ZY0OOZB/9LPzrxpbsaDMYU6yqcBbfr5WGUXHx3jML8nczoqebeqLR OWqFcOoMLjErakMnsiBrNJzfORjRKMwawLCw8Ivfv0RjHg5pvJiLhVJYl5jzd9i1x0Br xOffQ/fn/SwQMSqxrbZd0sNOTrKtyOQb4ksxp8enMz7wtxhTxyZrhH9DuqgBVe2kcprv GuA504yVj84TQrnwYkTelZwHQdlRUkZuJeZywQ7x/BpZTsFVmlk0oHTYBbAHqhgC/pEI tbd7RTH+fIJ330sABfxDt3ldqVD9QyoMgbw2gp77NAJp3LRPD6GNECrEElWaiXZ0XPdS MVAQ== 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=fstBy6yWcExH6RGLHLt2IS0s2Pvrh3Q8g8Pb+fMMd6I=; b=QC3pP7rNd+USWfAwOMHIOUHxZAGiAbJ9YR7y2ji3zJlLp2thPB9HcKQbwe5KxH0QiS n3xDlpknJiETz+JejjEDTrlz/8IPvi80g3034qEFotaQucBFP937WSnB0OH2clOm2M4V QWue2XmNoj9+sqfcWOuFtpg41wIEW3cIxg5sAg7Xoe1baJZEN1cx/4+fM/lKVSVdKgyg bJXy9mQhl9qdWH99gdJc63z2Nx01N4AfIAj6Nzn+IO390ehS2jppMVUbsAF+R/8iqmet MkNV/9EwsFjNLk8AqpE4MY30dJrR6Ztjd7M5nlDMTmXIxX7MVQ+LliaesBozaT1WP+O3 Kaww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZnhjZmqw; 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 j6-20020a170906104600b00949564ae82asi1584747ejj.265.2023.04.06.13.32.49; Thu, 06 Apr 2023 13:33:14 -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=ZnhjZmqw; 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 S239565AbjDFUcE (ORCPT + 99 others); Thu, 6 Apr 2023 16:32:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239554AbjDFUbr (ORCPT ); Thu, 6 Apr 2023 16:31:47 -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 3DA699767 for ; Thu, 6 Apr 2023 13:31:37 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id by26so4206129ejb.2 for ; Thu, 06 Apr 2023 13:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813095; 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=fstBy6yWcExH6RGLHLt2IS0s2Pvrh3Q8g8Pb+fMMd6I=; b=ZnhjZmqw++GXIV66u0SJMdSn0ABd8Ck+cMBwrxscy7ExiQKNxRSIZOVNB4YpQWAez4 gVgFqj2axWjpWbqV4pgxLNCcmmnCDnN9rQmgr9PuBIoyhbQMG+dkJWUnKn1Cz3AZkuNT Wx4/GxsKwjAAoDqjrHgh1r6VJ6MRdrZAs4wpmZl8IUlIUG2Rh8Q9JiuiGnr1Ieq0gOMy g38xMZio5/a7kNGhbYZxTjWu7GiVPX83+sYjr5XeuYPuvmPAY3++28MbL1Bs4UUj9ZGB 0M9AfZvvfLmaWCsHcuVMlmCSYu3BrmB/LXgBE6nZrzYkLuuGWSQD9y+UvrtXC6BVEifq 6GSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813095; 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=fstBy6yWcExH6RGLHLt2IS0s2Pvrh3Q8g8Pb+fMMd6I=; b=dEYWzOwpEq/5M58JMABBmsx86NmGXnvaCdnfhp3QFGjTgOiZC1f4KCitIQ2hosvUue bYeXP39eBSGWCVwB+DkQhN+n5R/8Zfo9hsYfYP/3m2lAROIJKBAhnioiIwnLA2TdsFda w7EfArGaswh952+Ws8XyES49O7j3q6OsXhY0nZNMYpsVfnFfK3TGgIOpM5xINGJ9T/xn EHUtwFJJa6/Pp5qSbxhdVquY6COWLnddFz+X2p6Bbu4PeBIt5unN6l53e0O5lZKQHYRq PvltFRyHJA0aJ+CMOHhxhNamwM7HLP65rgDDXX9wRczAcEGFl3DJBp5Z/KWeMam1vqJ8 1PXA== X-Gm-Message-State: AAQBX9dK1szX+Rc2/rCnBxqu3AsTE9aGBgVMLliG0o2yLtn0BL8AATBi rbegcWjFnP8R6kECsbZaEVUdSQ== X-Received: by 2002:a17:906:f9ce:b0:93e:24f6:d7a3 with SMTP id lj14-20020a170906f9ce00b0093e24f6d7a3mr258509ejb.8.1680813095377; Thu, 06 Apr 2023 13:31:35 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:34 -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 09/68] hwmon: as370: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:04 +0200 Message-Id: <20230406203103.3011503-10-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/as370-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/as370-hwmon.c b/drivers/hwmon/as370-hwmon.c index 63b5b2d6e593..fffbf385a57f 100644 --- a/drivers/hwmon/as370-hwmon.c +++ b/drivers/hwmon/as370-hwmon.c @@ -76,7 +76,7 @@ as370_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *as370_hwmon_info[] = { +static const struct hwmon_channel_info * const as370_hwmon_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), NULL }; -- 2.34.1