Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9179827rwr; Thu, 11 May 2023 11:02:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7P37zWgK6jObbXOiL1FgZdZMr1TknrbRWbfg1C1YN9qmWXZBmTnsCFFvb2zlE1Qt+s9LNB X-Received: by 2002:a05:6a00:1a0e:b0:642:fbed:2819 with SMTP id g14-20020a056a001a0e00b00642fbed2819mr28255541pfv.22.1683828159596; Thu, 11 May 2023 11:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683828159; cv=none; d=google.com; s=arc-20160816; b=qAKRzBAbB76Ab4x1otpj6zQk80QYtm2o5jcH4z4RHvBEcG1hvaR32Dvv+TH4tcp2Qk I0/Ws0W6ZB3Og4JodDLsQ8SFqiDVWRY/oyD2j+zMAYBn7kPNGDOnp0ysUpErhdhJiTDt HdlRy2TZF0QyacfDF4HnmAvDbBZlsNlUywJpJbwnOmM5gBd/3tTInrmKd/DyEET+oNLk bAFA+CUlB9qVV7T1/P9zjkGN679wwATxxqhaQBVXFNAGQGP9RIIUuqf1s/wSd3nS+iND C1Kt6JHENkeZ1yE0jxIFJrutmSOPOcHHFEHv1vfR4/x8WqPTXeCRR1DdZ15gD5BYyl1N jKvQ== 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=blxzVw5ZIRppHWsDqH1Uz1DLv37Tw0S0eWN39CE26xY=; b=UsVtB1YrqwfkaiXbsBhsH8e2O4mlJ++AVUzIJaEXdijvSFvfw9CmYxjFVSIDXmy7Kr SUZlepvzip+B/KR7n5MaOM1acEeZsxun9CiCVd0lqdfgPHczL0l5cKz5i9uySF6VoKed jza8hsXAaDAsE3hcqTX1M8gGDy7uWOxIYYA0fVWKnxe90wn3+A/UDDtRDWpJGDTuwJrs ZbKFKd/nEvbUEGMpwj8Q59WcQYHkZSyS/HAcZW5+KUg1oHF5rRibv7u38CsldBtOqwtF BkCX4Jx4Fcb3X+y6MiHMb+gWH6mRkIGPmhV0MC2RpptnS2s/ZdQRfOLeLUW1ojcM5RPa Cf9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PCiS09Mt; 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 n7-20020a6543c7000000b0052868a865d1si1541190pgp.272.2023.05.11.11.02.24; Thu, 11 May 2023 11:02:39 -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=PCiS09Mt; 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 S239066AbjEKR44 (ORCPT + 99 others); Thu, 11 May 2023 13:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239009AbjEKR4r (ORCPT ); Thu, 11 May 2023 13:56:47 -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 2F3F093C1 for ; Thu, 11 May 2023 10:56:18 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-966287b0f72so1194509366b.0 for ; Thu, 11 May 2023 10:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827773; x=1686419773; 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=blxzVw5ZIRppHWsDqH1Uz1DLv37Tw0S0eWN39CE26xY=; b=PCiS09Mtp3jTfvU/PIeslpOX0gEXgltnNeOCp7MxNnmSaPrQ4IDqlpIacMJ8KyUWvh m+ClNSoIBsenJK6wexQCrgc/tj9WbbRW9pOEfDzmyKi8Zz6MKTuq0uol6pJZcIp2bhYw rd61WY7zODd4R4K8Opdlto7PP482k7XCGS+3WESaZ0Mxg263s09THRNVoV45JFELDv// 5qIFmN/Es1kxRIUKa9DNdp4URnRoXOwPxNOYTNyj35Ntxr71e8nk9oArhvPTyDZrk+O7 9l38Ll5UJVeUSQDfXUXCqf9rI3PcAu4TtzUkbQJ7wL6ZPkzVLNpEANi8QWmMaMHe08VV FUmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827773; x=1686419773; 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=blxzVw5ZIRppHWsDqH1Uz1DLv37Tw0S0eWN39CE26xY=; b=GIlViMW5esNuKNzUdL+N1jpGVko5wSv226lakoGUjBA14Pw+pAC/uRcBOwcgzWKVkT 0oAlPF+qrTnGROVKJR/DNbYnYMoY1XlYz2ZkEED6ETThbQjY40OiWZbNQrCcoO//en4r QTLZcSv/HF8yGx/MY9N5DYYfKl2eNxvlz72FdCsHFgQKFNmvMQHpSb9mlGjfIAWgtJbg 1/QIqxquwgr1htOMka8Uh7B/NJkqBRDDkDvOyQ86V3xcrJe3yTP4qPDlwz4bsFRPI/3f AZF+XgSL83SF/aVg1XQEQsQaQ1+cDZd6ThcJ5xpCef9cCJ+gk97tdb03DLhDrnobC9Cx DBBg== X-Gm-Message-State: AC+VfDy4pWVpn7Ty4MYqCy+RWRmN5/hBXiqRnm6R34IUw2FxgwD9wClj sIRiFM5TNhIhzPf3yJ/yd61iZg== X-Received: by 2002:a17:907:3686:b0:94a:56ec:7f12 with SMTP id bi6-20020a170907368600b0094a56ec7f12mr21091597ejc.30.1683827773470; Thu, 11 May 2023 10:56:13 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d7cd:1be6:f89d:7218]) by smtp.gmail.com with ESMTPSA id lf23-20020a170906ae5700b0094ee700d8e4sm4247029ejb.44.2023.05.11.10.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:56:12 -0700 (PDT) From: Krzysztof Kozlowski To: Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH 2/4] rtc: ds3232: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:56:07 +0200 Message-Id: <20230511175609.282191-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511175609.282191-1-krzysztof.kozlowski@linaro.org> References: <20230511175609.282191-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 pointers to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski --- drivers/rtc/rtc-ds3232.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index dd31a60c1fc6..ce46016c9fd8 100644 --- a/drivers/rtc/rtc-ds3232.c +++ b/drivers/rtc/rtc-ds3232.c @@ -359,7 +359,7 @@ static const struct hwmon_channel_info ds3232_hwmon_temp = { .config = ds3232_hwmon_temp_config, }; -static const struct hwmon_channel_info *ds3232_hwmon_info[] = { +static const struct hwmon_channel_info * const ds3232_hwmon_info[] = { &ds3232_hwmon_chip, &ds3232_hwmon_temp, NULL -- 2.34.1