Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9179908rwr; Thu, 11 May 2023 11:02:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QP2rviojK+4bQN9pVhzFwvrGptllUDsdGVeWi3VDMHuTJzqXAB5uqpEBsew/Rp4UbZ0hU X-Received: by 2002:a05:6a20:a12b:b0:101:5037:7542 with SMTP id q43-20020a056a20a12b00b0010150377542mr12557447pzk.10.1683828162593; Thu, 11 May 2023 11:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683828162; cv=none; d=google.com; s=arc-20160816; b=AJ26m+lC0S2qA7eEDIONI+5r9T5b3n/GrX7opHNWAReL9g/lEOpvUXL2tCCoKX5wVA WUbLkPJ1+CkEm9C3kbbY5AiUCXGxlCtSPD5bLVPtwaLSwPU//J0+cUlBxJHj8boeb4qr WhNgJKaRr4foY8R8g2UkQU1exG3jcAn2OD4y5gnN+pK/K6pl4pXkR5oWkZcZtFQdXPD0 fk9AJ9RLMxG39E8697a7Wt7+DFCaY1HCNmTsSIjjXuW/hG0y5eIoN50Rs2Boox4KpWGf sVe4Pud8D0v282jtt/hve8IG9oY5HFVZyRYQ2Au1Uqa/YU7UrC6FSYDTylE5fgWwNlQF GKzw== 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=uwVqstjWFn+Zamz+w/FH3E3T1HT4Og6RyODIsPtaoto=; b=GJ/mOIvH4U2G5hYt5PvGMRRHixCHcOU2r6kFWhkh+frqdI+q3thUmeGDSMMtgFf5xA NUshEzfMIQqgIqp27bNIIwResqVXN0bMI/VDLcyMreLsAPjithhM44lLY2qkZcOfUsa0 PRsJ1IoUNtRe1meb63kA1uW5UdS3dvehoyMbmbTA6kDAnfFhAFESMcye6YjHT0pZ+gVf j8Er3iVc9rN0ik6QY50aC2uND+99+rSc491mm0N65IVU47Fak0R5hpnx161+2ieiaewN EYVCIySUAjt7XFPTisqQqj4G3heMTiO/xzOsP2wuWYip7NBw3Huhj9N3fvC5VXb9o/q9 A6QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HPAIRbNc; 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 l65-20020a633e44000000b0052c6e736ad1si7621298pga.61.2023.05.11.11.02.26; Thu, 11 May 2023 11:02:42 -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=HPAIRbNc; 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 S238965AbjEKR5B (ORCPT + 99 others); Thu, 11 May 2023 13:57:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239028AbjEKR4t (ORCPT ); Thu, 11 May 2023 13:56:49 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF021172B for ; Thu, 11 May 2023 10:56:19 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-50bd37ca954so81940674a12.0 for ; Thu, 11 May 2023 10:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827776; x=1686419776; 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=uwVqstjWFn+Zamz+w/FH3E3T1HT4Og6RyODIsPtaoto=; b=HPAIRbNcmwukj+6QYxYbXl+oL7vPWFhnv0/8ihw9Vr3rezNdERj2UnpCM+ahT1b7Bb wbF2HDPc4sCY2ur+68TebefLrejhDRCMIC679rgzJZ3bNTyo3Htm5BeYRPrUp/Qlbttd ZuzdTQ+jOVhtssXisOdNHzqLhAs449PPIn3yHpvzm4HV16WKXa8KKW/NKv62jNjD0b6t z3fbrEaWJ2VP3BiMO6A+P6YEygX2WLN506QVLf3J6DlGJTjzj+Uo/eDHmPdZ7GSiGmKz JtyBm/bTXH2pTJg4ODzE6k/2VWPjThL/scFYszNeTo1glTOMaCmcPlIFY79rE/YjpVDf 3BKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827776; x=1686419776; 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=uwVqstjWFn+Zamz+w/FH3E3T1HT4Og6RyODIsPtaoto=; b=IbNogzMRMaZdZzKBYH7idwIplhHL+ojDXNJ5kMPswGK8PwG6BNOQsP8hjKj5z91jPs 0j7x2FtN88P4rMhJF/QABLB6SZfy5kP9RxRZ2lkzR2+WFKaeGxYzRPmvcNeiWbL16f9A fl+Jfvve+ZOEJagjsqE6Ze7v8cJiaZITu5GKhYMl8g1HmoOXfSeXdnbB9NksGGcuvDjx DITqTG9S7M4NbDzxCAZ4tvpr1sYBF5crM7MSY4cmJl7Nfbm92+7nU0wX5DyneJkCKC/k p11fIidRtKLBjYPWg7OmPhggizusodC9O9JX8QywovE9J+5L+CKVoFETbJu+tXeOAvwH B50Q== X-Gm-Message-State: AC+VfDyWXoRIPJbefFNIKTShgQe6mka58ZiUZP7Y+Yxl1ZwZu+qBy27n WaPseA+LWCFxG84hZdsSTsJlxQ== X-Received: by 2002:a17:907:e91:b0:967:4bc7:38c0 with SMTP id ho17-20020a1709070e9100b009674bc738c0mr13383700ejc.9.1683827776562; Thu, 11 May 2023 10:56:16 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:56:15 -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 4/4] rtc: rv3032: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:56:09 +0200 Message-Id: <20230511175609.282191-4-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=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 pointers to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski --- drivers/rtc/rtc-rv3032.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rv3032.c b/drivers/rtc/rtc-rv3032.c index 1ff4f2e6fa77..7b36e7f125f7 100644 --- a/drivers/rtc/rtc-rv3032.c +++ b/drivers/rtc/rtc-rv3032.c @@ -842,7 +842,7 @@ static int rv3032_hwmon_read(struct device *dev, enum hwmon_sensor_types type, return err; } -static const struct hwmon_channel_info *rv3032_hwmon_info[] = { +static const struct hwmon_channel_info * const rv3032_hwmon_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_MAX_HYST), NULL -- 2.34.1