From patchwork Thu May 11 17:56:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13238302 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 66E5CC77B7F for ; Thu, 11 May 2023 17:57:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239047AbjEKR5I (ORCPT ); Thu, 11 May 2023 13:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239057AbjEKR4z (ORCPT ); Thu, 11 May 2023 13:56:55 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05A9493F1 for ; Thu, 11 May 2023 10:56:33 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-50bdd7b229cso16201102a12.0 for ; Thu, 11 May 2023 10:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827791; x=1686419791; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=24nE1/kCUIt4VxUYaOy3n42p9I+OEZpARvSoMuz1JcY=; b=romEM7onwBvttCZ6Iyh6XGlNl6BiuxxstU5nRxUtYf7UMwLRAB9f4qvhYA8Hk2/b0E eTFG/hxUU2Y8XxM7FIoZzrxACMoLc2S+4DmXpR7cSpCMJ52jyWfqJ8E1+h/hJTgrAoss zfLX/TcL2GXp82O73J4Q9kpATOy1zv31OkVg3pZse57SQJHZDCLhBSQINeiw2+xNalw6 sK5lnFN2l22vsfVDcTG5I7EX5iEwCvlEhPPMbPZgDUdMUQcUqMPcoGXjE0AksElbgo4q AUG3A41/nx7TSKXyQpyjjStAlTU6ypVr9THjLBW9c0EUFYbWHqHCkSQhX0Wu8Uc8kOUd 3Gwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827791; x=1686419791; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=24nE1/kCUIt4VxUYaOy3n42p9I+OEZpARvSoMuz1JcY=; b=ZD/xxk5oq1Bf5YHmk+WUwETXML85QFfD66vso/Jo+65aFQzQTbNrgklGNvMcJJgYOK prUm4bbsncLTYWF42KsctjjstGpYRv1MKKwKCNHpKR0kHBT43IXECx0NwTeSpctHDgUr 4iNTdx3mVCGf1LNzYjP62mjRM277s65/P2Eio311/iHlqc+0jh/9zD3CTBHA7XhfTOJz qEbymSJ4Ek5AaO2aroZfdmooPovkUC8ia9B+IGAY1p1aYpqF3V1hycp8zql+6oN3qT6Z UgC4uHUnEc2xlr8928b0rCHtTSprbW31awD8oFQ9Fs7xsrqF+zWs/m3YSdo7hFwTbaSq it1g== X-Gm-Message-State: AC+VfDylOnZPbUk0i2ERdjhJRcyDlNxpe/3KMvUq5+3PwMdVrBeFv5WG yaiLpAZXkW2AHGIpgqR4BUuQBA== X-Google-Smtp-Source: ACHHUZ4dVYd1ckDx8XuEHai8ueEHM1w9oSLwr1AQap+eSxw5kA9JOvV6VACtscHKKLA9r+o5MewQ/w== X-Received: by 2002:a50:ed99:0:b0:50b:d30c:c595 with SMTP id h25-20020a50ed99000000b0050bd30cc595mr16582930edr.7.1683827791134; Thu, 11 May 2023 10:56:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:56:30 -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 1/4] platform/x86: gigabyte: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:56:24 +0200 Message-Id: <20230511175627.282246-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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/gigabyte-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/gigabyte-wmi.c b/drivers/platform/x86/gigabyte-wmi.c index 8aa665e866b8..f6ba88baee4d 100644 --- a/drivers/platform/x86/gigabyte-wmi.c +++ b/drivers/platform/x86/gigabyte-wmi.c @@ -94,7 +94,7 @@ static umode_t gigabyte_wmi_hwmon_is_visible(const void *data, enum hwmon_sensor return usable_sensors_mask & BIT(channel) ? 0444 : 0; } -static const struct hwmon_channel_info *gigabyte_wmi_hwmon_info[] = { +static const struct hwmon_channel_info * const gigabyte_wmi_hwmon_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT, HWMON_T_INPUT, From patchwork Thu May 11 17:56:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13238303 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 10240C7EE24 for ; Thu, 11 May 2023 17:57:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239065AbjEKR5K (ORCPT ); Thu, 11 May 2023 13:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239088AbjEKR47 (ORCPT ); Thu, 11 May 2023 13:56:59 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41ADF8698 for ; Thu, 11 May 2023 10:56:35 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-50bc456cc39so13330974a12.1 for ; Thu, 11 May 2023 10:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827792; x=1686419792; 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=s7FN5EFH4KBac4/ZvODbt2chzmKokVJu41Eq2V61hww=; b=Ckoxt4MXbiGzc3oJKuG/KM6YiFy3QeFI/+dQye6TbeUSU4EleyP5YK2Gs78/LMYVV4 DL8/q40nETC8NkyT8FDKbHWqDhV2vLedB7mVNbs5LQLRTXfWrlFbOWQ2gkO+HjRrdv/H tfXPgC4kjGs0432uMf/DX236CX8mRPDNNcet7VxUQD0P4x1tbb5xidJOaPLAOquKUXgn S3sqD30iDEdFLlc6KqJ1hyMWI5puJqzhdcyYRjCWgeKIVlnOywTifGlp6ZDqD6Ak4nZJ noHX93f2c4qJLRlh5VfbnSpUkziRwobZOB9D7xhF6IW1+dDxbzA0o3vi0rHd5unQ4lem JvKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827792; x=1686419792; 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=s7FN5EFH4KBac4/ZvODbt2chzmKokVJu41Eq2V61hww=; b=hCx2it9zhZhaXBs4q7AIBkcUeVhkmLHWZjEYeUexKtFzyJdLhFkqfGXS/+7I0ca686 SW5afElhm+nVstTJ0MoKKJGKVCIfN3GwV5gP2gknQxFAh36/LGOVMlj5YmKpCA2k/vdu JDh7hK9QpAgCRU6mTk5guofNyUg+pK9lz+em6JckKckU+HNEPzmpG96cR7X2bgCd0scN 403wyY8f4LxNG4e5YJWHgHeJxRpTSYzS+yTwuPNrwCEF97l9cTuo+LEEq/5C38J1myw0 1O3hP372CDVJDoH286DGk8d6gzKjBq7lq/53EjJLmA7gaBnRpQIXN1v2K1W4GvBgznuJ 6q0A== X-Gm-Message-State: AC+VfDx/PJgZfgIxzpxmm2zCxQADTNuRDip5ZKrzH6UbfLODsFbtVkIk K/2k8aSRIFOGS2Hs1WyzcuzuHF+DxEmX2tF65KG5nw== X-Google-Smtp-Source: ACHHUZ7JgTc7lzRjs6O7KBEfpdv2k+JY52kFwpFw3tfal7pz8tnhnl5OdOTt4XulMNGQBoAaBl44hA== X-Received: by 2002:a05:6402:1358:b0:50d:f9b3:444d with SMTP id y24-20020a056402135800b0050df9b3444dmr2316628edw.21.1683827792436; Thu, 11 May 2023 10:56:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:56:31 -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 2/4] platform/x86: hp: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:56:25 +0200 Message-Id: <20230511175627.282246-2-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/hp/hp-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c index 2749433b713f..7eb66cfef208 100644 --- a/drivers/platform/x86/hp/hp-wmi.c +++ b/drivers/platform/x86/hp/hp-wmi.c @@ -1536,7 +1536,7 @@ static int hp_wmi_hwmon_write(struct device *dev, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *info[] = { +static const struct hwmon_channel_info * const info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT, HWMON_F_INPUT), HWMON_CHANNEL_INFO(pwm, HWMON_PWM_ENABLE), NULL 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, From patchwork Thu May 11 17:56:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13238305 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 52F17C7EE25 for ; Thu, 11 May 2023 17:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239122AbjEKR5Q (ORCPT ); Thu, 11 May 2023 13:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239074AbjEKR5D (ORCPT ); Thu, 11 May 2023 13:57:03 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC8DA93F8 for ; Thu, 11 May 2023 10:56:38 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50bc3a2d333so13566730a12.0 for ; Thu, 11 May 2023 10:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827795; x=1686419795; 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=KCyxJcaAFa337XSHNk4ZEZ5EvAPLYPe0lv9iIwuR3yw=; b=FxrBM+wVO5lKNfaem66x85lmcOmC3PdTSCKVL/Q0Wgq9Y11SanV3QDvrZHVJJSTJqV 79ksGxCXpH+ejS3t7KBwAwDJQs3qho2ToV3NMmGzd7GIpJ6Y5mg/pGxe01zsjIzrcD/k dM8/Gu+/4AEBEOQ0POhVkPowtemxRYmmQq6kj3p6AeaNe+7bSM++hmpNv3u5T8oslSIl C8n6QO0xmXmG5wzy5RqjmvDTITj7Uy5vy/i+VMGZ9/1nV+qdkrnhT7PQibvc7beQWrvn OoYTMSngvRO/tGKkqGAv8VSlM7OEeuAP6yaShqX6eqmKtDl3t7KETWSjaM8sGZwN2/HL QThA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827795; x=1686419795; 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=KCyxJcaAFa337XSHNk4ZEZ5EvAPLYPe0lv9iIwuR3yw=; b=JqQQOOWecju5NFndgh37yXjRoncSv874NAZpft2manPJMQfjp1CeqKYTgY33oIwZrT rQlaBOyagwbb26W1mmlOhTJj4vK8hvL+OAosImQsunVcyX6lkKL7sygUXJQjI2/O/K+f +QTGjxy2H1S0Hn+WS/F0JmpyeeVdpg848hZDKNAD7yXWIs/VsPMa4a9+X9S3Fpkw97AK JMsjoyP0nENnDam+J9TQ8ILCeifSogYvaiSdYTuy1fuHnxrs7Q9yZOdgW5W8PrsJWdNH s6/OtirZ2p3+qrYk3uELa3HT9YVvl7Rz5TXuG4O5EnL+lm5ssF9dvsxcRToJkp99meLG aojw== X-Gm-Message-State: AC+VfDwIdBQjRUZmi+KvdcwcrIAZb+bq33COSQ0C/VDMMAYyRVDDtcHM cz9ToEikoPFj21AdiHytqo/0dg== X-Google-Smtp-Source: ACHHUZ6BwS51Kq9J2gQ3d/+7rl1iu+B2UgPf/z6zT3iyqJOrue5IN8+UWbnD4Wrr2HHfBkgbOZReNg== X-Received: by 2002:a05:6402:14c3:b0:50d:fcfb:8633 with SMTP id f3-20020a05640214c300b0050dfcfb8633mr1872363edx.9.1683827795034; Thu, 11 May 2023 10:56:35 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:56:34 -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 4/4] platform/x86: toshiba: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:56:27 +0200 Message-Id: <20230511175627.282246-4-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/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 };