Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp16097rwf; Thu, 6 Apr 2023 13:39:03 -0700 (PDT) X-Google-Smtp-Source: AKy350YMc5s3sGTIQXWWXhrkdX+daaejYxBhxGOhBpmcAoNQ0RFhExywfZaYXZrylVx1BwW5hfho X-Received: by 2002:a17:907:7843:b0:933:2f45:bcd5 with SMTP id lb3-20020a170907784300b009332f45bcd5mr6924233ejc.24.1680813543399; Thu, 06 Apr 2023 13:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813543; cv=none; d=google.com; s=arc-20160816; b=Dph5aUEVGZf9rTt4cVjtgniS8BRVgD/Bov1J/A2s6qOm9DkxtxCuTrOfcyI6eT/zV0 cBRX+o3LFvqrsNT+xSXBeSgPNgOzhjbQZIPGKbJ2SVeItiFxqWqcs5yEDK99a+uFmJW5 gIXRqItK8Sqp8j/JYLyk7WxcwFFntoj3OUqV6n+0SrwfDiw98DuYnZoADuQIl9ZKlgfL g3xVFSVscDYVS00dYaS++9I23oCt1vT4wsTr3RFiJWGVUkGTU7vJTnZwXEVH80ex60PF 11mPj5LeHr0aGNlQ3+3ImczWCjTmfRwtKMFkEC7R7vBXYAsb/IOnTMW7/ZDNB6YZVyeX 3ASA== 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=F6xd2tffMesWFruLPM1ew1mkLwGCByzlCgeOCdIQWX8=; b=Ft9NVjjrYzMRVtSa6YtF7A5Klyq4FdyaFsbisW3m4yeZMF5YRxssuI6BR8xaDpsNIq omJ7DFTlhV9pSnGIbr6DNaCPunJaJxADyIjoiO9lS8XUJJitZ/5C+H3OQMM6c9A6KtSQ AIdcXTUgACvu2jnOIMdjBOFRay8tgEaf9fQKUKQZY0pPwFBT0WGB4vRRVUoE0RLgyTTb dLk7PJoSyAiz1DdGI+69EdiIdIVbkdQrl8YHHTCCXcF9ajZZW+9X/A9AyfrG3CqghuE4 vbw7Wg2Bo2olhcOKuaHldZY9fMt0weFgQfXMTFQDgx9Ty95ex3t/wJdiZNVxsplsJtrq 4txw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DwuJ2jed; 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 l15-20020a170906644f00b00947a6d7ea4asi1535861ejn.1023.2023.04.06.13.38.38; Thu, 06 Apr 2023 13:39:03 -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=DwuJ2jed; 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 S240271AbjDFUfg (ORCPT + 99 others); Thu, 6 Apr 2023 16:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240006AbjDFUe4 (ORCPT ); Thu, 6 Apr 2023 16:34:56 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4D6FBB8F for ; Thu, 6 Apr 2023 13:32:52 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id g18so4219199ejj.5 for ; Thu, 06 Apr 2023 13:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813171; 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=F6xd2tffMesWFruLPM1ew1mkLwGCByzlCgeOCdIQWX8=; b=DwuJ2jedcpUw2EfvPj3qQD1GgTtcC/5Qz7Treay1VS8UPa/mRtH03W7FaWhnMeSVe0 PR60NrOAMxI36GmZqVwHD489+b1fGEZXoaQmBJb8peldCOzclB6kz61j2O9c0o5njqSO y1ufd3TaYUXMgcSkqCXKyd/2sV8X3tI/OrX1pC2epQLCA+MC2DO6GQ44uHahiMQMOtSr zRDVEBJbiCJ/xklk8TCU5UPVgnqvvD4C/TsZNszCuOXo6NLxg+og6J50vyYNv19AS2iV NrFNV1DpY2Qyg0dFBMRhrb5DyS26YyhZ3QxL4x4LK7L737Iqxdg2U52WTqMDM1Rtw5Yf FynA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813171; 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=F6xd2tffMesWFruLPM1ew1mkLwGCByzlCgeOCdIQWX8=; b=KGKX79vh0B8Ca9So6WpkwXmHIgjAja9fgIvedpLoFb+lVDBpfXvVwHr4JS3n7JG3CG k8QFJSTnqdFl/Q87M7rZRXX7hKQiGFQvSbZVZlpG/Sa7VXOIkNCaJ6l8ZCQORsE8GCC/ qnHcHA75JeCePI+XMBRnlYirRMKS3sjcqwLmu6yG4yNNeD+rhvOmo6LPHwgxucnZ23hm qQje+NSe3DJt73f0aDsfM8JNquEcXYgQixjK+n4+0Wfa3DjDeXseufRNWS7xkWiXf7E9 5XyXovw+mlcV0kuBzNuUPLtSXWw9S2/48U+88/8jrY47vG0W9kPLCXVNvCZs4atEb1qt qcEw== X-Gm-Message-State: AAQBX9d3yAgIyqNEsD5VRkBv479lL54Tu4gDCuVmflab4vf2T9/n99gd JRszxfthb+tRtXwuuHw3v8pBcQ== X-Received: by 2002:a17:906:a414:b0:905:a46b:a725 with SMTP id l20-20020a170906a41400b00905a46ba725mr6085652ejz.16.1680813171250; Thu, 06 Apr 2023 13:32:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:50 -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 41/68] hwmon: max6650: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:36 +0200 Message-Id: <20230406203103.3011503-42-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/max6650.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c index f8d4534ce172..19e2c762ed2d 100644 --- a/drivers/hwmon/max6650.c +++ b/drivers/hwmon/max6650.c @@ -737,7 +737,7 @@ static umode_t max6650_is_visible(const void *_data, return 0; } -static const struct hwmon_channel_info *max6650_info[] = { +static const struct hwmon_channel_info * const max6650_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_TARGET | HWMON_F_DIV | HWMON_F_MIN_ALARM | HWMON_F_MAX_ALARM | HWMON_F_FAULT, -- 2.34.1