Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp83255rwl; Thu, 6 Apr 2023 13:35:10 -0700 (PDT) X-Google-Smtp-Source: AKy350aHwasJwFeomOsakZFKZBslZRs5INNEFcFPeYlifUB/MVNtGsCR1Q6V8/T0TxE/BH+hbx7C X-Received: by 2002:a50:fc11:0:b0:502:52dc:b9d4 with SMTP id i17-20020a50fc11000000b0050252dcb9d4mr688958edr.10.1680813309939; Thu, 06 Apr 2023 13:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813309; cv=none; d=google.com; s=arc-20160816; b=CtS1liJM+DBwe+LyT1MX/g2DBbZ/Sa7UuWtRQh2zmOVEwFidcDb1RXA3lUzydbVYGH q+wzJ/37Wf7HlXOrOomo18D+dVaBMcHLFoavvMVLNXc9XIheDQg9UXt1mi61FYhqEuQl 0Mhgzck+QR+/Iwk/345gOx7bxLdb6sdZGQsPBQr+85r1eBGJLJgJjvv6rpfCNNVwd006 B5mKwCG5SJOyi4wSl/5Izb/WY3EQ6tBtq2hamt5A+gvmQTfSb9XY0/4PYY6WxeR6ZbJ8 fL0fB6ouKFVL4nRf8ojC0XwEBh8mdsqossxs1iZyHxfolGo9IJ7aUkVJ9Lw4LabGPABe Q7eQ== 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 :dkim-signature; bh=55wB6FwAFZR2J5GJ5M7aLn7D6PzulcN06rOSgXVQC4g=; b=Wt7UXyzfmNBQR/pd9IzMfMqWifoyq67lOMBHDADUvQQReSMqcjKvulvSWTjj7Q5RqO jJgRE9tSXlcmkyIv/H5U9oht4CX2mioH+zpnkJ8xEkKTZSUbuY3SYqijXi2i4bYCXvqi SUEGlXG/sh3EG+lW9cEs128m4zKbw/HYPNWYF+RTlKUNIpxC7Q/HbM6+MT9CnvHa5v2u lCRYkLBY027ut4n6eqoaUKPWtHAkYgB9v+blMu+G4FIBQc+/2V/EePOIY6FgPl41G2/W 6W/GLOzCa97kUzrzvOAWXSqWf/10MggvE+80pQ5JEKNNdZZsGi+t2b+ZPaKAVa4+FC9P 0tAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EN2rt01W; 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=pass (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 t7-20020a05640203c700b004c1190b5abbsi1782838edw.184.2023.04.06.13.34.43; Thu, 06 Apr 2023 13:35:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b=EN2rt01W; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239804AbjDFUcp (ORCPT + 99 others); Thu, 6 Apr 2023 16:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239486AbjDFUcS (ORCPT ); Thu, 6 Apr 2023 16:32:18 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E089BB80 for ; Thu, 6 Apr 2023 13:31:51 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-4fa3ca41383so1404751a12.3 for ; Thu, 06 Apr 2023 13:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813109; 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=55wB6FwAFZR2J5GJ5M7aLn7D6PzulcN06rOSgXVQC4g=; b=EN2rt01WdBFTfSRBAls5Y9NM9nGaiaOcOOWu7OR6lKgUGnk0HwhDZSKRgwtXQBEk6H 4LP/Z/rIIPuYLly2xAQm/zGWSnVonmN+shsh4KytuvDM++yV6T9RP5gjpxRM898KCLNc 7pR2KwQ0n+0BkcM4u3crCcPJOVO69dmEzdmDwYlMHOjsmD+7YAnFBP3BJP0uiCxlEqOL s6aEgmXJSPqPouPrcqFMWR6YUIDONYoTO98GEm/Bl2xe+tQ3tXO2dsLp2zEI/y6QWcx0 4hRAAiWJx+Un89DSN7t8fqL4QbGj1Q+02Ga3JTwbZtmIGZhVEhM7ZePOLWeX62uVqhT9 x10w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813109; 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=55wB6FwAFZR2J5GJ5M7aLn7D6PzulcN06rOSgXVQC4g=; b=vBwvotErDmSbNWKDvjGRY6Wi+ChEkLrdIXRPAPhf7ybwKTqvFVz23ehsm1DkGBuwM3 WhCMW29owauAoyyNbzPDNK4QV7OS7slaRf9xTetw2l0jdwLyirLMyphjB0Clp7IQlQy0 R2XvDkaw8seMdySgB+bl1GMM6SbW7032qyD5jd2+/TU0/tuDRkGkC9nBQNCbn/41POsR JueKAWJnehPhyuuKk7Jlqo3LfRIMvPRpG+6z0ldb+todT/cb8uthrYa9Wlt5UYPWBFRc 2AfDGMBwaCumULC42Cg74kSX80ybMvk11GysJeXcotKrrJkURXStaTo7oGWx2Ls5KpVG kFPw== X-Gm-Message-State: AAQBX9dWr2pELwGD6vca4PR8+xCoF+G9ROHzgUZQWLhG7ANWurtTmL1d nsJ/aK4humYR2pCpPFzmz/0LcA== X-Received: by 2002:aa7:c602:0:b0:502:22fe:ef3c with SMTP id h2-20020aa7c602000000b0050222feef3cmr603299edq.41.1680813109276; Thu, 06 Apr 2023 13:31:49 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id s4-20020a1709067b8400b0092bea699124sm1210330ejo.106.2023.04.06.13.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:48 -0700 (PDT) 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 , Luka Perkov , 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 15/68] hwmon: emc2305: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:10 +0200 Message-Id: <20230406203103.3011503-16-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=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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/emc2305.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/emc2305.c b/drivers/hwmon/emc2305.c index f65467fbd86c..723f57518c9a 100644 --- a/drivers/hwmon/emc2305.c +++ b/drivers/hwmon/emc2305.c @@ -479,7 +479,7 @@ static const struct hwmon_ops emc2305_ops = { .write = emc2305_write, }; -static const struct hwmon_channel_info *emc2305_info[] = { +static const struct hwmon_channel_info * const emc2305_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_FAULT, HWMON_F_INPUT | HWMON_F_FAULT, -- 2.34.1