Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1078rwl; Thu, 6 Apr 2023 13:43:32 -0700 (PDT) X-Google-Smtp-Source: AKy350aMSscr8wXukUS85DCkVAX/9zbzhQH1Bpw8tYCu1SdN3JEI2Gz2Aeki980oiwQuDwogId3s X-Received: by 2002:a17:90a:c402:b0:23e:2b3c:d4bf with SMTP id i2-20020a17090ac40200b0023e2b3cd4bfmr13041563pjt.45.1680813812492; Thu, 06 Apr 2023 13:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813812; cv=none; d=google.com; s=arc-20160816; b=FaTmlCY/5Sm2o7b6kWDkM1nNczTPPpl+uAYGVLC24GV5nOcwm0EKDD4QwQCEiyIJ43 zV+IUIoovG7GQCULnzu7k/aaKSsVknfq3Q6jn9OAa4dUL/Bh1cc/YXafSoWdNse24ZyT 8Qson0V8IT1WKM++7B097SjRVN/JUDhCXW01HuSu9RNMPLDhBwBE+4/RqYjii1bB5D7V q6ADxfpiJtXoqSaeyBubrQndNfobdvrRd1N+PlvZ+L6wwTAvP+cSzFOKulKVdhfvPf3l pbte8ttLRjvGoVUPYa6ygdQ5yzD9hXN8pbmJPfAbk1WzjnSK4uoo/Rltvf+5sg7yNN8W KeRw== 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; bh=yWrC3UiruA6CSs5lgSaNinB6m3pQMUMnUQ77UxhTZsc=; b=n3iMORa7RKUItZpKCP1E1xjH9Wq/irLdDJMQW0uO2eAP0pKkFXXLtog1mAAIqCscHN nyQV7byd7BByGfVjVM5zJ3Ih7cJqONHDhXfwmF5M84Vxqz3ANucD1kgM+SFlPsZ6IRBr V0x69UOFKAYHMfJOeSNOYXIDmBV7rzsJEA2fdr+lEfO45r8uHumkhJC56CzcmHY3dJzv nsbo7GAzW20ut/27zRbhzt3X7NaMSvRDjNxio2ScTozGcWL2nfp9JTSy6E3Mpl0TBlos AJEIa0o/LFNM7gDBH1NxbceI93O6T6RmBNi+cqPpmfHDV6xrIXrJPPK7cM4mwOe7pK+F h5aw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 n9-20020a17090a670900b0023ff7fa0970si4542224pjj.169.2023.04.06.13.43.20; Thu, 06 Apr 2023 13:43: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240521AbjDFUnA (ORCPT + 99 others); Thu, 6 Apr 2023 16:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240362AbjDFUmT (ORCPT ); Thu, 6 Apr 2023 16:42:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFB96BBA4; Thu, 6 Apr 2023 13:39:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 67EFC60F91; Thu, 6 Apr 2023 20:39:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECE2DC433D2; Thu, 6 Apr 2023 20:39:33 +0000 (UTC) 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 , 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 56/68] hwmon: sht4x: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:18 +0200 Message-Id: <20230406203821.3012402-7-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=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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/sht4x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sht4x.c b/drivers/hwmon/sht4x.c index 13e042927bf8..5bbe09135ab9 100644 --- a/drivers/hwmon/sht4x.c +++ b/drivers/hwmon/sht4x.c @@ -214,7 +214,7 @@ static int sht4x_hwmon_write(struct device *dev, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *sht4x_info[] = { +static const struct hwmon_channel_info * const sht4x_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_UPDATE_INTERVAL), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), HWMON_CHANNEL_INFO(humidity, HWMON_H_INPUT), -- 2.34.1