Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp80747rwl; Thu, 6 Apr 2023 13:32:32 -0700 (PDT) X-Google-Smtp-Source: AKy350aaea3xsQe2qUpDo0AqgiKA9IWyQ8BFRTP3XxD9zcYtW9F4JmeC75r5PUB0jUZA3xDn4lB8 X-Received: by 2002:a05:6402:652:b0:500:2c4f:3f5 with SMTP id u18-20020a056402065200b005002c4f03f5mr672644edx.12.1680813152360; Thu, 06 Apr 2023 13:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813152; cv=none; d=google.com; s=arc-20160816; b=ukkMnnPb4ehm33Jal6gmcdI/pE9HQUjgoFxgrBJJJPszHIxFKkSn1jFniXejg7OyUy h9XGCxoSe2MhwkmhOflUb0MkOMdH5kNA4aQlHKtppmqfCgbG7UrtKpXSrwuwq//uR1IM fAx1RPknEPgajtGBxPRyvdFH9ABOfbRsvQGL9ruvk/5uS+cO6lQME6O559HfXALeFNij Cn/cv1I4tD2KYISeM2/H3g1vcgerSvFnWPELUoHPQLsnoWMn3FPSkv2tIr7aC+LS8BmE J9oPR0EDYGlmhOy1Nh2PDSviNkrx+W5jIgZ0JKsWAxCmZTFzFv0f1kQscUQWjkwpIE77 ajuQ== 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=2sIWqsMomKx2PnPBWMVAcd7l87EB+JZ4zJtWBb4tmtA=; b=Xft1LBlVaPA4c2iNVkET62Iao7O4IisANF2jsG8mAV9drKHzeUq5Zbd1YzIdVLBBjE 76l6frgpIwEhK2LUvI1ZHQzclIQXSfU3YVfK8iPfxkz7SzJZFU2fltjZjDw4BQumXOoC 9nm6V4CWR5miqpa/Rq25sDaPGKpqZiFn3nfKM5lzLyNaSOpgzvfzEt8cfk/xx6rhaGUF Vr/n9GhkLs22X7Mm2o5J8ZMAQNM+YYZU0+OrI1flZDiwcEiP7lnpXknXhdZ1/aICx9D1 wW14WTk2eFlzGnxU546ZNAulB6IaZq7INYlpm9/kfFO619iyHGZKQznST7tybBcGEepL wwow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QiBjZo+s; 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 pw5-20020a17090720a500b0092b97d144d0si1739902ejb.157.2023.04.06.13.31.48; Thu, 06 Apr 2023 13:32:32 -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=QiBjZo+s; 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 S239329AbjDFUb0 (ORCPT + 99 others); Thu, 6 Apr 2023 16:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239236AbjDFUbW (ORCPT ); Thu, 6 Apr 2023 16:31:22 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F334A5FE4 for ; Thu, 6 Apr 2023 13:31:20 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id l17so4223458ejp.8 for ; Thu, 06 Apr 2023 13:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813079; 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=2sIWqsMomKx2PnPBWMVAcd7l87EB+JZ4zJtWBb4tmtA=; b=QiBjZo+smpaLDZPnZQ79Z/dEAr4MqaFcZVqqqialTjCXWVvpLK1kIifHK2HcJ4B3N7 +VLEpX1SSwbzuzq6H3Rf+w5o/msSwZvE0mw+kJbt6rQTkz623WyZ1ca+vUy0UrEPwrop WaIxfowNxoYjnRYmFKtXGuhqHnASBsfU6CZV0Igr7sejZ92V+4V4QYLKQrMWtrRDlQOP lzm5MdIqkJDNdy9ppfSFbNTHyIhXQShGgadcfbODs49sL8uEem8nYlKfIjzTE5c7s9de db0FX8r1RpncYzo+w0IY734Uzhvi4pjTjVhTXqamE6hsP6uGZhyEkVVtGdWZci1BVJrv 1bhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813079; 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=2sIWqsMomKx2PnPBWMVAcd7l87EB+JZ4zJtWBb4tmtA=; b=E3VlojeEkG+9jWAmzVZSsJdLZprQGSDKKqIPIk18GG1NahQdpo23J2fVwwlTAKJHtr sN3b9/xK8yKmZl9aJjky+samGKkAM7YkuQquW7sTZzJlI9VCWEYiCKX4y2OINLZcxaIy 4QNFzPzOS66Pwa3mR+sB1CdS96o3j3LSKTv3ghTkQWny0OdL13K7oAqx3ioOIzcs/m/3 EZ6EedODlxXYae8c2LiMIbmQBM2xXiYxoFKvoqhrCTXYbgiLDf1G4+GOR8czCFILqiMG a/KlgRjBjm4m3l6xUYkYcvkGLeehg6gqKvMp0l4O+f4GiJI0WEL4uZAI5NCVQcGkiF5d UcSQ== X-Gm-Message-State: AAQBX9dYCJjMhB/gfpIM400Vv3YeF/U8dIFRRqwWzF9LFcKyMKHwfZcW jooHUVXzuICTXvrT7vKWe2+sDQ== X-Received: by 2002:a17:906:bc4b:b0:947:55ad:dd00 with SMTP id s11-20020a170906bc4b00b0094755addd00mr147468ejv.26.1680813079290; Thu, 06 Apr 2023 13:31:19 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:18 -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 02/68] hwmon: adm1177: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:29:57 +0200 Message-Id: <20230406203103.3011503-3-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/adm1177.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/adm1177.c b/drivers/hwmon/adm1177.c index be17a26a84f1..bfe070a1b501 100644 --- a/drivers/hwmon/adm1177.c +++ b/drivers/hwmon/adm1177.c @@ -168,7 +168,7 @@ static umode_t adm1177_is_visible(const void *data, return 0; } -static const struct hwmon_channel_info *adm1177_info[] = { +static const struct hwmon_channel_info * const adm1177_info[] = { HWMON_CHANNEL_INFO(curr, HWMON_C_INPUT | HWMON_C_MAX_ALARM), HWMON_CHANNEL_INFO(in, -- 2.34.1