Message ID | 20230406204027.3012532-2-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1300442vqo; Thu, 6 Apr 2023 14:06:30 -0700 (PDT) X-Google-Smtp-Source: AKy350YzRy/Cw3Y8V9T5cVLkLJuOf/m00QKlgLc78+7JpXK992RaKSCE9ayNeRJ3gemzCxTuBH02 X-Received: by 2002:a17:902:d511:b0:1a1:b172:5428 with SMTP id b17-20020a170902d51100b001a1b1725428mr629634plg.18.1680815190357; Thu, 06 Apr 2023 14:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680815190; cv=none; d=google.com; s=arc-20160816; b=oybNEQrUuDtY6TefFMnsE/ZkosNwzynoJKjMjzOHwfKdonb1QLTVZPrwIhoWgAcqW4 hd21LHLJVUShZKBcCILXVPjQzIak08v38SQRaHRwf3JUGENRDnKgcyxBK88Uk2qq5m2i XIy0h3EQ19R9Jifoa2xlZgUWzkvsB5rMkTeaYFSRs4pMapVjo2vAYY47hQx6+ZLOA+Ia t3Ok7RNNb6RblUdnnQnBusfCtb1QQIaVnnO+TpXW/M9pWFTLbG1WJwBzdpGih7FRZBaJ AD10m3AxVLEy2Q7Xq7STLTa8E0LW5b5KNQaE1QOUgyB0YbqF6kHWm4Zm2v3o8c3B2Q9A AUfw== 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; bh=yK6QqQ+unO47Z8rC8YqDcLCtvRZboTSWVzWJaf/v2Lc=; b=dMbI7jdyaXDU+6I5Hr869e7wKB8VQGD+WSuCkSOj65rSwJ5QPWKhcBjNbJY8oCVvVi jMpDV+zu/hQa7k5SXxBSMFFvUR0ZUOLUsxkscFh+b7xX97amkRp9Jvo07QK7V6K0rgId rtkZmvygLhBcxbJnlf8on0BBx5vkz+2Gnobpab449n+o+27mGFuaoDYlYRgkeeKHtGy7 J2RkaC9U41bDCp44M0EmRKDukIfBUaoKFiN+Gkv9Aa0uYrSKYYQLaP/toVhVELZC5qnq eYFKZJS0is5yem6QTqa+3O0M4eUnm7Akd1fdLktpawHDU+rAB7fmJh51TSi7yYG+TmHw 91xw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e129-20020a636987000000b0050befeed875si2030117pgc.32.2023.04.06.14.06.08; Thu, 06 Apr 2023 14:06:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239077AbjDFUng (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Thu, 6 Apr 2023 16:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240193AbjDFUmz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Apr 2023 16:42:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D775BAF1E; Thu, 6 Apr 2023 13:40:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3383364C45; Thu, 6 Apr 2023 20:40:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E0A3C4339B; Thu, 6 Apr 2023 20:40:43 +0000 (UTC) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Jonathan Corbet <corbet@lwn.net>, Oded Gabbay <ogabbay@kernel.org>, Michael Hennerich <Michael.Hennerich@analog.com>, Aleksa Savic <savicaleksa83@gmail.com>, Jack Doan <me@jackdoan.com>, =?utf-8?q?Nuno_S=C3=A1?= <nuno.sa@analog.com>, Marius Zachmann <mail@mariuszachmann.de>, Wilken Gottwalt <wilken.gottwalt@posteo.net>, =?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>, Jean-Marie Verdun <verdun@hpe.com>, Nick Hawkins <nick.hawkins@hpe.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>, Clemens Ladisch <clemens@ladisch.de>, Rudolf Marek <r.marek@assembler.cz>, Charles Keepax <ckeepax@opensource.cirrus.com>, Richard Fitzgerald <rf@opensource.cirrus.com>, Ibrahim Tilki <Ibrahim.Tilki@analog.com>, Avi Fishman <avifishman70@gmail.com>, Tomer Maimon <tmaimon77@gmail.com>, Tali Perry <tali.perry1@gmail.com>, Patrick Venture <venture@google.com>, Nancy Yuen <yuenn@google.com>, Benjamin Fair <benjaminfair@google.com>, Jonas Malaco <jonas@protocubo.io>, Aleksandr Mezin <mezin.alexander@gmail.com>, Derek John Clark <derekjohn.clark@gmail.com>, =?utf-8?q?Joaqu=C3=ADn_Ignaci?= =?utf-8?q?o_Aramend=C3=ADa?= <samsagax@gmail.com>, Iwona Winiarska <iwona.winiarska@intel.com>, Florian Fainelli <f.fainelli@gmail.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Hans de Goede <hdegoede@redhat.com>, Michael Walle <michael@walle.cc>, Lars Povlsen <lars.povlsen@microchip.com>, Steen Hegelund <Steen.Hegelund@microchip.com>, Daniel Machon <daniel.machon@microchip.com>, UNGLinuxDriver@microchip.com, Agathe Porte <agathe.porte@nokia.com>, Eric Tremblay <etremblay@distech-controls.com>, Robert Marko <robert.marko@sartura.hr>, 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 <krzysztof.kozlowski@linaro.org> Subject: [PATCH 61/68] hwmon: tmp102: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:40:20 +0200 Message-Id: <20230406204027.3012532-2-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=-2.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762462468758983618?= X-GMAIL-MSGID: =?utf-8?q?1762462468758983618?= |
Series |
hwmon: constify pointers to hwmon_channel_info
|
|
Commit Message
Krzysztof Kozlowski
April 6, 2023, 8:40 p.m. UTC
Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/hwmon/tmp102.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c index 2bf496a62206..e271556efe0b 100644 --- a/drivers/hwmon/tmp102.c +++ b/drivers/hwmon/tmp102.c @@ -141,7 +141,7 @@ static umode_t tmp102_is_visible(const void *data, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *tmp102_info[] = { +static const struct hwmon_channel_info * const tmp102_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp,