Message ID | 20230407150306.80141-1-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 b10csp354603vqo; Fri, 7 Apr 2023 08:16:26 -0700 (PDT) X-Google-Smtp-Source: AKy350avrEeqiwz9tiSJCgtToLoSO3Ik7skDsBscRZwQssvrX1nqC+qfiBuPfhsu8bCDOqrmgcA9 X-Received: by 2002:a17:90b:1c0d:b0:244:a412:47d7 with SMTP id oc13-20020a17090b1c0d00b00244a41247d7mr2935669pjb.20.1680880585755; Fri, 07 Apr 2023 08:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680880585; cv=none; d=google.com; s=arc-20160816; b=cNz3ZgrzP4YOLW+jlwmZGWwO2yCkWcVfDDL7uN5lEVVoU99cTzdbLDHKKiS9YqZJMs 86ev9Ea/MULzk1J294nGMAZxHUU/dlYQkScYcJ5noQBMUpuKp0VcTy4lp2SyMfRRO1Go QfggsPlPP3wAZcdAUY5R73bjmoGIzmCVfSdNY8etddobYHFkt6Oe2rbb9Gt4yYaoOVFF GFGgk9saZbL3TpYjycCCe+m0De9gQVYT095JDHH4oZE81z47JyzoR+1R5lkAoaNwBkLs hgQYU2mNhdXplkYGeHCcjU37BIrHaT0q+c5wzFlRlI/Eemoj70ooly7NriUrtG8NuvKY MHpg== 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 :message-id:date:subject:cc:to:from; bh=bHyvHevaDYijkZALFYOdEQ8znNvQRouzKDuvxZiLfa8=; b=Kr3uGNilEDEmLHhtJL77ZJlY4amx0o8zHW++/nQfD1R2V8r38XnW6LNDud2ufg7HaZ 2H0so+W77CmIWtf0BP/7jolka2U9VeA468Ts33gHd6kqdbVLZuhOEHwJE60YlrEf8aGJ h7frvbvtGk/4sFuEt4GtRsIdYynT9xwkqzxpVNxyex4R7MgEIKWEKjYOgDRwxSKSulFh 1I8ioOo1I3z06HqkqrgweaBQNmbEfGjZfmfLXhAVjozljqfV2rKSAPiYaj8vB+nytyTN yRHZCZHGT9jAfqfH0JC2PSmmmjAhJw4JmWtCJkRdQyRwYHMkFwa3Ke7NAfrhYWSeVrS6 FynQ== 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 pc14-20020a17090b3b8e00b0023d028451f1si6543367pjb.184.2023.04.07.08.16.12; Fri, 07 Apr 2023 08:16:25 -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 S240753AbjDGPFP (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Fri, 7 Apr 2023 11:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240845AbjDGPEy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Apr 2023 11:04:54 -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 489A3AF3C; Fri, 7 Apr 2023 08:03:56 -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 5ED3B649F1; Fri, 7 Apr 2023 15:03:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B22CAC433D2; Fri, 7 Apr 2023 15:03:09 +0000 (UTC) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@bootlin.com>, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, linux-hwmon@vger.kernel.org Subject: [PATCH 1/4] rtc: ab-eoz9: constify pointers to hwmon_channel_info Date: Fri, 7 Apr 2023 17:03:03 +0200 Message-Id: <20230407150306.80141-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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?1762531041237727897?= X-GMAIL-MSGID: =?utf-8?q?1762531041237727897?= |
Series |
[1/4] rtc: ab-eoz9: constify pointers to hwmon_channel_info
|
|
Commit Message
Krzysztof Kozlowski
April 7, 2023, 3:03 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>
---
This depends on hwmon core patch:
https://lore.kernel.org/all/20230406203103.3011503-2-krzysztof.kozlowski@linaro.org/
Therefore I propose this should also go via hwmon tree.
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
---
drivers/rtc/rtc-ab-eoz9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 07 Apr 2023 17:03:03 +0200, Krzysztof Kozlowski wrote: > Statically allocated array of pointed to hwmon_channel_info can be made > const for safety. > > Applied, thanks! [1/4] rtc: ab-eoz9: constify pointers to hwmon_channel_info commit: 4c3f19ce70d7a008953a8d2e9584a20c328699c6 [2/4] rtc: ds3232: constify pointers to hwmon_channel_info commit: e4133995fe80251ad2abb0261745ea27ab97c2e7 [3/4] rtc: isl12022: constify pointers to hwmon_channel_info commit: a176de9fffcb97ee885b2ade3dbb23dc9be33b29 [4/4] rtc: rv3032: constify pointers to hwmon_channel_info commit: eaa9cec95de9405ee7400e8888e6d3d42173df28
diff --git a/drivers/rtc/rtc-ab-eoz9.c b/drivers/rtc/rtc-ab-eoz9.c index 34611f6dedcb..143650cb7822 100644 --- a/drivers/rtc/rtc-ab-eoz9.c +++ b/drivers/rtc/rtc-ab-eoz9.c @@ -455,7 +455,7 @@ static const struct hwmon_channel_info abeoz9_temp = { .config = abeoz9_temp_config, }; -static const struct hwmon_channel_info *abeoz9_info[] = { +static const struct hwmon_channel_info * const abeoz9_info[] = { &abeoz9_chip, &abeoz9_temp, NULL