Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp974070rwl; Fri, 7 Apr 2023 08:06:58 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9yM5PCbh3Pv/GeABhUr1ytA/dv0mvUpVTzsH3a7OjZKhnDUpEpMRBJBtVahwEvyXO/6Ow X-Received: by 2002:a50:fc11:0:b0:502:9578:38ed with SMTP id i17-20020a50fc11000000b00502957838edmr2779931edr.27.1680880017839; Fri, 07 Apr 2023 08:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680880017; cv=none; d=google.com; s=arc-20160816; b=CAKPAhhR65g8BTRP3tGXgIeSZjeY36FxzXEXhv5kY153dRPv7GuLJJTxX7MzhMwSlT Pefno6Iwtc4mndXrVt97tYshI7nGvw41DTc78ZiG5qqdCwNrylX0cnZorcBUNAym1oOU I+cxtQdNblGPyE0FhiVQrKJfRcdQWUtF/9RoobRLm/G2kbPQd/kgFSGrY113tvvMBiuj KjHdx+Uwk/TQIQr2E24YGpmxJ/Cjf0rz8LXMdEeqceI8MifpmPDBx2alQwe3E73S9l58 oXyNRsTzBlEZeyAxnROEWYGePSeC2cVNWK7NKuoWOfJx3rG46lYNPxJL7n5fyav4ag86 V6fQ== 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=rkVXlkT7qty/HIvZOVoue6r19OgRdc40KkyObZ+b85Y=; b=EMo7KyVS/BR9HJw5AC5YDDtZZzj4gHhgojaJX2tCi32Uq/0gu/T33SDUsxPqyRXjHG PBo7ZvtYquILoYXT+K/FNLjsRz9jaZgBG3TCryfUlvasT5Dzn9HEtjwuwp5o0/qLmeXM x1QvZ24fa2XBWVaC9gUAndWSrM4vXaCeL2wrzAytQsuQTBhmLOe+GwAobX0cjPrPBK4h 17kRiXVdD2fz0pAAuZusOQJSYWuZjH13c6G8G21S7SbHvIBp23SkV7ccQfDofk9s6Ir/ yMhqEA4wbRgp6EJ0k/Wg+0aCBRIeoSbYMolZEF/dfSIwJTih7+oWZVDNOFFs90TgbvMQ kOxg== 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 f18-20020a05640214d200b004fb4859cd4csi3401798edx.562.2023.04.07.08.06.25; Fri, 07 Apr 2023 08:06:57 -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 S240847AbjDGPFo (ORCPT + 99 others); Fri, 7 Apr 2023 11:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240647AbjDGPFK (ORCPT ); Fri, 7 Apr 2023 11:05:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36990BB92; Fri, 7 Apr 2023 08:04: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 B268E65204; Fri, 7 Apr 2023 15:03:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58E8EC433EF; Fri, 7 Apr 2023 15:03:50 +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 3/4] platform/x86: system76: constify pointers to hwmon_channel_info Date: Fri, 7 Apr 2023 17:03:38 +0200 Message-Id: <20230407150339.80218-3-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=-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 --- 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/system76_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/system76_acpi.c b/drivers/platform/x86/system76_acpi.c index 97f5a8255b91..fc4708fa6ebe 100644 --- a/drivers/platform/x86/system76_acpi.c +++ b/drivers/platform/x86/system76_acpi.c @@ -581,7 +581,7 @@ static const struct hwmon_ops thermal_ops = { }; // Allocate up to 8 fans and temperatures -static const struct hwmon_channel_info *thermal_channel_info[] = { +static const struct hwmon_channel_info * const thermal_channel_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_LABEL, HWMON_F_INPUT | HWMON_F_LABEL, -- 2.34.1