From patchwork Thu May 11 17:56:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13238304 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07ACFC7EE24 for ; Thu, 11 May 2023 17:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239028AbjEKR5P (ORCPT ); Thu, 11 May 2023 13:57:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239101AbjEKR5D (ORCPT ); Thu, 11 May 2023 13:57:03 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49CA98A4A for ; Thu, 11 May 2023 10:56:37 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-50bc2feb320so13896060a12.3 for ; Thu, 11 May 2023 10:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827793; x=1686419793; 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=q4a17TISsnqon0g+WQRIQyVdDs2e1Fg+Zm3O/wPYErY=; b=GXsjlxueZtUNIfkf6oGD/FcTZpnCIjbTcTERLvsQtrBLOTgy+z00Kf8zmc3vdJ5IyF iLI5pnYBycGu2HGO6bzBCvbdeIFnuRzVAQuadRA+rheeMI4XdeSyH+eShOoutBlnDy7x o1MusSHhMG/B+wdui0JSKDCPZ5Xkp7w2CiZy46wwRNn0VWPp0OlUjO7oReLD+p6gniR3 XSeN88X9viE8Tvvzt3r6WwHUls3nlPi0kVmE8CCV+av6Hv8ANf5pKPr78b7dTnEmbaCo MVZN9Jh1Z/pnOpjPjajGaMgy5iytYG4nN0aU91fO7965QW6ApT2FB8b0zHI2B1XM5sIA ABcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827793; x=1686419793; 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=q4a17TISsnqon0g+WQRIQyVdDs2e1Fg+Zm3O/wPYErY=; b=Wdx45N35tVFKfFC07PK/tyvCdqymvaFSNmsjWcc8nMJdpdh9hlVcW8CfKdOrSkDGG+ oOssOWqfl4KFmxheFKJ/bcUGABKZTTEdotCUFI8CJGbGfSaS4pXUaoluHd1rIFPBHDXK 3LVptTQsn4iq3DwzS6heMMtY9z8xvzZBjwk65hnJw7lNETNFWn1lecwlPcZeYHJ47cuT BacnsSIGV5hXPBRqfSDX8C+z60M4BjqDLJ3dKegaLSgTVdB6gXhLFyHbuUkI36J/F4lx CAMagdrqfNo0Jpw382niIxzIjBdkth+8D7tgfZQtTPfjk0ev6HUcG3tk6zYmK1qIhnDB HVkA== X-Gm-Message-State: AC+VfDws5NIiXenHBBrrSOHmttYWqWXzivMA3WpWU7v5q0CcAyD3hGMV 3APUb2BQQ6cv8RM/ZujcEvwrgw== X-Google-Smtp-Source: ACHHUZ5+FmyIrDIqqTRU67HCD6b2QlxHjV4nlIKuXreLQBx9kRRffDYvkGECXqF2AdYS+nDXNDKedA== X-Received: by 2002:aa7:d945:0:b0:50b:e1d1:91cb with SMTP id l5-20020aa7d945000000b0050be1d191cbmr18072796eds.8.1683827793643; Thu, 11 May 2023 10:56:33 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d7cd:1be6:f89d:7218]) by smtp.gmail.com with ESMTPSA id l14-20020a056402028e00b00506addaaab0sm3099202edv.32.2023.05.11.10.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:56:33 -0700 (PDT) From: Krzysztof Kozlowski To: =?utf-8?q?Thomas_Wei=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 Subject: [RESEND PATCH 3/4] platform/x86: system76: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:56:26 +0200 Message-Id: <20230511175627.282246-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511175627.282246-1-krzysztof.kozlowski@linaro.org> References: <20230511175627.282246-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Statically allocated array of pointers to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski --- 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,