Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp85041rwl; Thu, 6 Apr 2023 13:36:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEec+bkC0hR2q6pPiCgeb5ed6jRr4/CY/8eBUlu2cdTSCbllXXnkiqGNfOGPaDxOCbFNTt X-Received: by 2002:aa7:c593:0:b0:502:1c7d:deb6 with SMTP id g19-20020aa7c593000000b005021c7ddeb6mr698048edq.29.1680813415662; Thu, 06 Apr 2023 13:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813415; cv=none; d=google.com; s=arc-20160816; b=0kr88PTt/nIjMkB8HJNYnf15Wz4u4yzgqgFpOd+NLG8/ELNFYG3GxjDnnCtXZRDu8A sraiBvHPdUGntJLsebVna2PMn2GgCCC1YihZSjiNdWV5L6Bis5+bnFQdevEHQXXSdcVp 5MHsgjMw/B2KcW2AR1hp+NdslDjxuYjL/bSl+G6zux96GG2JAenuAsiRHLkvMnuQm5An TJ9wAvCRwprnrNUGlgzX3/iOhd3A0l909JnznXWIP6w8zUj5QPeki3UINUP0IwIbsVRl XEoP3IyL8cLTCBLoSyl890wqzs+K2CV+JOwFKdOWv1PItWZlZaOsCtFvpdIOUZ4QSRpz cEKw== 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=KyU4R7+rVxuTRbNla/dZpdNR+174rHG6NC4kuQr/+W4=; b=YdwYwATBXjqNer3Xey+cYcycX186gAsIU/dwQgdXAZVBj9Uektae4aUUARONAmhVjl lu6Baj9WWUeXFl7/VhyzPndssD+TbBRf36xu23v/UA803EtpEasJAi4fhDRajwPuQDU2 /VxwOrw4+dPYltgd5Z9zW1kIOM2b9ZLrfVs7QVCWEQPAhpRx72e8bsP7tombLL8C/Y3B gaH/7irvLRyBBKga65HpWkPytLJh/yi0n56CeCc3dxbr+Af3YC+Jremd/Rlfuhj9J1RN USldI2x+z3H4sK4tw2cR3zcy1PFr9uUgXsVpWMsU9NiKxsKbUDKPt3akofR0rZGsFdNr GCUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZyrN+KeV; 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 b16-20020aa7c910000000b004fbbd7bee7csi1783549edt.58.2023.04.06.13.36.15; Thu, 06 Apr 2023 13:36:55 -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=ZyrN+KeV; 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 S240197AbjDFUfQ (ORCPT + 99 others); Thu, 6 Apr 2023 16:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240039AbjDFUel (ORCPT ); Thu, 6 Apr 2023 16:34:41 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07DEDCA08 for ; Thu, 6 Apr 2023 13:32:45 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id j22so4228480ejv.1 for ; Thu, 06 Apr 2023 13:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813164; 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=KyU4R7+rVxuTRbNla/dZpdNR+174rHG6NC4kuQr/+W4=; b=ZyrN+KeV4TLYQjcjz4bAGx6FzuzFIaHoyBJ5Q+EncEHnlNTdRX/2/NLxQnpRbIE5PT cDRXu63gYGKnCgiY/+fnjRbbfcJkLjU7J++SdbVaYF16jIHuufsGSww3oXT48GPvvCK0 ejWy2bvrxJbVbkpOEmIcXBq9hcBM4TXyqYaFMFMd3jn9kOIrItEvSCSmwzn4J23gnxNk mFue/Ou4BfYZ+WhEV7A2nwxOuBJjYH34fxSLVVTDGCdxLgtpfR/EvIXNy/iITrRB/WIl qsihOJlw1tqaSVWLyacyyMg4f1GOJ8q0VJo6dAk9UUpZXTInEgb98q0RTNJTJgNUdXSe x3aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813164; 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=KyU4R7+rVxuTRbNla/dZpdNR+174rHG6NC4kuQr/+W4=; b=ESkvkXZlHuG4Dyr5reGO7XA/mAW85nJ9C2mXQZiLXuSPBECTscP/sBUTPDXhBbJ9/C W4r5e06qukV53U0IhPb8o+WzAhoj97ismJy3X0df5qEXXTg+o381YfS6il5YpR3W9ByY 7b9Lcvrdw96mkiAK4mKHEfZGIupmRgZl9wAKYr4lms7/Od2Ww9LyL0kK31EuiLgJXc+I recZ8hNjAljmvYZHW/nad4qfgOKRWcXQMuirrKT92j7JRrWZgPkldxEITwgE+EyQyZOx FB9wrhWVcAi4avDzKu0u6EDrD5CWpKjk6HVMY1BK+6C2yBPfjBK1T0BXMdvmY7wZrsAb ojnw== X-Gm-Message-State: AAQBX9fUeTv18H+fxFqMFx0dZGEstA5wLR3MblrO5TSGZkjAcd9yh+9U GSMjD9Q+Z/xxRT8jBPAU4fktwA== X-Received: by 2002:a17:906:399b:b0:932:a056:e77f with SMTP id h27-20020a170906399b00b00932a056e77fmr97415eje.60.1680813164450; Thu, 06 Apr 2023 13:32:44 -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.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:44 -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 38/68] hwmon: max31790: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:33 +0200 Message-Id: <20230406203103.3011503-39-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/max31790.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/max31790.c b/drivers/hwmon/max31790.c index 20bf5ffadefe..6caba6e8ee8f 100644 --- a/drivers/hwmon/max31790.c +++ b/drivers/hwmon/max31790.c @@ -445,7 +445,7 @@ static umode_t max31790_is_visible(const void *data, } } -static const struct hwmon_channel_info *max31790_info[] = { +static const struct hwmon_channel_info * const max31790_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_TARGET | HWMON_F_FAULT | HWMON_F_ENABLE, HWMON_F_INPUT | HWMON_F_TARGET | HWMON_F_FAULT | HWMON_F_ENABLE, -- 2.34.1