From patchwork Thu May 11 17:56:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1780227 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=bbR/Iw4/; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4QHKN5562bz213w for ; Fri, 12 May 2023 03:56:53 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239061AbjEKR4v (ORCPT ); Thu, 11 May 2023 13:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238868AbjEKR4o (ORCPT ); Thu, 11 May 2023 13:56:44 -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 E26294EDD for ; Thu, 11 May 2023 10:56:16 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-965a68abfd4so1689054566b.2 for ; Thu, 11 May 2023 10:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827772; x=1686419772; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=y4dB7ekFw9CND226UK6hDbOLw5RQw3W+5HfLFUcbj4M=; b=bbR/Iw4/ew2hIHwNU+7OUJPMCzpe+fygXMahE/LKLF+gcjmdO+4nHREaCVAeMdmH65 e6dCm5u+M47kxLKoBxb+OhqSWHEi5xRLV6OrJIOEtM+E1WjocefEPG7CQtfjlPeHu19k DVrgQncODrfTrNU5cIaTv8UB4WIBqxRpCCQJ3PmoRQ+w4rS2ziuKi8pGj6YvwiUyMfiT AjbAG/BuGt5fP0fury5cMbkP5PpuV4OxfkixqtkNkOXvMLbGVxGxFA06bl4ei5OUyhhc W/zmHzqd/PDw3jbbXnP2AqsQ5IdZn3IvXbaKJaVkF21+ewSe3FJkB62dDxLuyujsc52c u3gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827772; x=1686419772; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y4dB7ekFw9CND226UK6hDbOLw5RQw3W+5HfLFUcbj4M=; b=eV3zrHhDCNxzIWTvnnlBMfR0rUxL5/Zi9vilIc7LlSUb/T4HpDI14fZios29zDtv0x yQbBnJhuCnzK9isG12hMIQ3QuqzjqsqezDFk+m3QMdyfWmF6jhEdFxhJFiz1VTI8bbRl uoXU1I1HKrjVfseysSnQavnuFeBMuzKqDYuN+U/aWrNQJn5DwGPLpHFh8RJ+of91j+X7 tANoJnsaT7qg6E9+5uyQtwW/06ZsGrzmr1sETqAobHmTCidCqXWw3Kky2aMN7toQdKjR e8E5gihQA+09cNws0bpgHnrF+i4u0osQy0UFmABdIhqvmap/rUCc91UOtdWq6mODH1EK +aAg== X-Gm-Message-State: AC+VfDw+sPY3iseM1v+du9KR6OLANJ/BguD6A/QzVeJACzZ6uxLlvl3v JEHeP3HVS3h3QI0JU0rLLaffAg== X-Google-Smtp-Source: ACHHUZ43Ug69juLszCcJpjwbZpXFFRAoD+U6n4kLO4xvc/1wdpjiZySCb57QXtdQcSrqwxeXJ9NMzw== X-Received: by 2002:a17:907:6e10:b0:968:1e8:a754 with SMTP id sd16-20020a1709076e1000b0096801e8a754mr12746345ejc.72.1683827772136; Thu, 11 May 2023 10:56:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:56:11 -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 1/4] rtc: ab-eoz9: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:56:06 +0200 Message-Id: <20230511175609.282191-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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-rtc@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-ab-eoz9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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