Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1082rwl; Thu, 6 Apr 2023 13:43:33 -0700 (PDT) X-Google-Smtp-Source: AKy350aKFlf6Z2/4D3nwNqk4B6VW1T1rTgf+efrVyfTN4dc9OZ/2XBPvNvlyZm2oC1CcdZ/uUUZo X-Received: by 2002:a17:90b:4a10:b0:234:5eb:2177 with SMTP id kk16-20020a17090b4a1000b0023405eb2177mr13247464pjb.9.1680813812878; 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=p+GQAvh105aPeFLaI3SGLKq4Mmv4t1KKPd9kVmIhRr+9guvmJvgxtmDvbw4gVvb2Ds nAEjgAHlsq046WYTPHPRL1HD69vEEe4MwhHh9+cxkqmmTgC4e4iYVhIG1cD97B6F3hcQ jiE9kzijWrYf6LP5HRWJRO9X9goW9PU0QOJBjA8sCIfisFBJqs9TS/sVOrgaC9BtNZ7B 4c0f+7ek+EcXzO4kNytFMIfF1z/TgJHDBYWVRViS4v/fYg/XqctDGJpP9XobR5mhqbXd qdqT+zx7ypUJo9bx3VCwmPij/jDwdDf83p9FKxbBmZhF3fRQiy8C5zja9g0WiUdf9Xyk TvjA== 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=JdsPD7F/uoG9axtFNA0wE3wQaEzRT7qsM9/XTu4C9ps=; b=gXJo+utvqtjDWicNr02EMrX6lK9fiphOZlvHXFDaS/hz18xyjUoj+wy7I5WyNyST4A l0Z1Os6YGPlBWztcwDXa3AdP0Zf8t3rDALzmmoYfcBtHAgz+Q4krQdsocGB3U5ysOpKU B0NG2C6o0kEVJ9TSVmhAvZAy4zSym0mCPGttf24HZke0tzDgw/9jAq0n/lHT6XsZOzCp lX3WGd3Y+UOf8txVdK4vAVQzRjCkoAB6cKMFIFlt8DwSz/iTPkKTt+J8Rt4ZU8rCLHRW 2cCnH1wR6Zua4utZjNUR/blC0CMl4rGJLwv0w4RGsknR2g97h+l6yNyJZoVxwrFPU4Dn 1xMw== 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 nu10-20020a17090b1b0a00b00230b5621adasi4982694pjb.45.2023.04.06.13.43.21; 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 S240059AbjDFUmy (ORCPT + 99 others); Thu, 6 Apr 2023 16:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239616AbjDFUmO (ORCPT ); Thu, 6 Apr 2023 16:42:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C60D55A6; Thu, 6 Apr 2023 13:39:23 -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 078F460F1D; Thu, 6 Apr 2023 20:39:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D011FC433D2; Thu, 6 Apr 2023 20:39:11 +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 54/68] hwmon: sbtsi_temp: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:38:16 +0200 Message-Id: <20230406203821.3012402-5-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/sbtsi_temp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sbtsi_temp.c b/drivers/hwmon/sbtsi_temp.c index 4c37de846f93..7049d9464ac6 100644 --- a/drivers/hwmon/sbtsi_temp.c +++ b/drivers/hwmon/sbtsi_temp.c @@ -182,7 +182,7 @@ static umode_t sbtsi_is_visible(const void *data, return 0; } -static const struct hwmon_channel_info *sbtsi_info[] = { +static const struct hwmon_channel_info * const sbtsi_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX), NULL -- 2.34.1