Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp974249rwl; Fri, 7 Apr 2023 08:07:04 -0700 (PDT) X-Google-Smtp-Source: AKy350amh1FI396fVM66MyZ7S7+gvwTLuqIjNmfBMa7Ml/U489qeu5rWC30Y9up0eCHoMAaH+QSB X-Received: by 2002:aa7:db95:0:b0:504:80a4:d019 with SMTP id u21-20020aa7db95000000b0050480a4d019mr946572edt.12.1680880024483; Fri, 07 Apr 2023 08:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680880024; cv=none; d=google.com; s=arc-20160816; b=GliWZ4qS3Eww0PCQVRLImtgO2ArN/8hS5icS+J2yUpN7j8FdXgfkuz9BoF7x0TMRY8 RFPsrwjNdWja2btrxAzqVAmElx4jZZcD8mUEBjMdTvSqy7pnnLUcrGckqxTpw5/KpV1H b9QFnT7bB0AOYvpcm5W/TzwMIDMVBEiR5+zM8BCn3uWmdzjgakIVXZY7BiJpNkdFUphE D8JWZs3xDXuXBIQQ8fJ8uyHZBLuoTgenop2I8qB5FTMnYu7PhoVttfVxGQApj4uHehEB oBZljypwafOeENVfqhL5Eh8YSBDcqnPXMnMbLD3xqtA3wjHTwgWvsix/ECH49r8ipoEg DAAA== 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=hlSnNHmR1yYhjFhCb/jNfDBlXiB4zgxu6PZZLfrJMEw=; b=xPRWxW/8NFZPC7kG5VoYv5OB0KCOWt2YzMx0hpDQCHEOkoUVApUZW/pPjGDI+zU8Yz HokAGnGyzk/9tvAPNAJIIgXFGbSmhzDafcPaSJhMkDpTU0XZKTC7qN8kzr1wjCORzPhB 0jdToKci+Pg7bM684z7L6RbZSyRuCorAH5nfY9ZDlMzp2Amlpg5WI6P2YpxkQQyE7D34 9uMl9Tv2YgFgiK6NR+Hf1Fqgk36APNl4nKu8cYIXutMSrwQ50l3ogz5kw/lesW6lzLDw g6G5S+eNRO05PqvPKbq5bV7NVDyvbGhfEhr+hPlUbcJLMAOhkTiZh1yKNUgDSdTYlELj d0BA== 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 g13-20020aa7d1cd000000b004ffaf8b9e6dsi2546921edp.488.2023.04.07.08.06.38; Fri, 07 Apr 2023 08:07:04 -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 S237519AbjDGPFe (ORCPT + 99 others); Fri, 7 Apr 2023 11:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233217AbjDGPFD (ORCPT ); Fri, 7 Apr 2023 11:05:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D883AF38; Fri, 7 Apr 2023 08:04:12 -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 1DAF464A8C; Fri, 7 Apr 2023 15:03:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94373C4339C; Fri, 7 Apr 2023 15:03:53 +0000 (UTC) From: Krzysztof Kozlowski To: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Hans de Goede , Mark Gross , Jeremy Soller , System76 Product Development , Azael Avalos , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH 4/4] platform/x86: toshiba: constify pointers to hwmon_channel_info Date: Fri, 7 Apr 2023 17:03:39 +0200 Message-Id: <20230407150339.80218-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230407150339.80218-1-krzysztof.kozlowski@linaro.org> References: <20230407150339.80218-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,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 --- This depends on hwmon core patch: https://lore.kernel.org/all/20230406203103.3011503-2-krzysztof.kozlowski@linaro.org/ Therefore I propose this should also go via hwmon tree. Cc: Jean Delvare Cc: Guenter Roeck Cc: linux-hwmon@vger.kernel.org --- drivers/platform/x86/toshiba_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index b34984bbee33..291f14ef6702 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -3037,7 +3037,7 @@ static int toshiba_acpi_hwmon_read(struct device *dev, enum hwmon_sensor_types t return -EOPNOTSUPP; } -static const struct hwmon_channel_info *toshiba_acpi_hwmon_info[] = { +static const struct hwmon_channel_info * const toshiba_acpi_hwmon_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), NULL }; -- 2.34.1