Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1733rwl; Thu, 6 Apr 2023 13:44:17 -0700 (PDT) X-Google-Smtp-Source: AKy350az79pIgEfnAZGU/zyc1r33PaYR2XmgTJBw5agvCCVxh0VeK1HGVWtF9RxUQfBetmZIEfpu X-Received: by 2002:a17:902:fa4c:b0:1a5:120b:4a41 with SMTP id lb12-20020a170902fa4c00b001a5120b4a41mr173347plb.35.1680813856956; Thu, 06 Apr 2023 13:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813856; cv=none; d=google.com; s=arc-20160816; b=ays3D+hrxTojZ/mM/EvTRBUCe15pmFhG3tFsrVtNXMrlwBSPsh9xTG5E5iXQXs8eKM y+S6RYjISERL0snJOHjukmWzbPEwb44Z3ZDQGYv52q4SavMUsgBmEqZeto3QEriScA2p q73+t+Bgvdsf8lSCiixJxOR5nmtZqMF2vW6PXqFJX/Gdst4xFdpEDJLzOvvZPRXefHeS 16rTUd7C2GxjK76Ut2tLpXfGS27YFbKe7l8z+oKkaWlEYoRI2mY0KOqeiJ9MLQZl4BXB mCfUqKKEZ0yp5PBVDqaLrmMvsrtwpIOB0jD/wwf0P0nOOT9+IJa3ddrTV2CJsC8uKlhd +E2Q== 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=aCnpyr2Z5PTIq9AbnMl6Ii8vDCc+zuWx+NjwfjYRjv0=; b=eP2BWBue9SOXSUhfHTw7tRviIfbaJpaekJd3MZhXKPt2eEX1ozZS76M32KdTFcGJE8 eatWJHLKOTI9WdI3wxs0kbbAkT2osOdnbG9jnK635xhNZ6KghMNytFmsRTAx0W7Xd8YO PRmN36fcAjO5XpJjib6uGxaJ3KtBOZzzxPY+U4AfL5gIwPTOTzvjZmNqDhtzU0/USq0Y mIt1m+hNqfAs+bnzQJURpGCKpQk+4Pb84IsTTZ1iiHWEnmSEGdlz0Hut3YIrLndadUX1 IftjbJ8JKZ1WXq+aW4/rogkgsAufn3zc1IwysWRgdIOznXg7Hc4oJo8uOAONEnGNc7/v iMUw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a170902cf4e00b001a216fddcfdsi2169353plg.643.2023.04.06.13.44.05; Thu, 06 Apr 2023 13:44:16 -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 S239910AbjDFUnW (ORCPT + 99 others); Thu, 6 Apr 2023 16:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240330AbjDFUmf (ORCPT ); Thu, 6 Apr 2023 16:42:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0021BA260; Thu, 6 Apr 2023 13:40:43 -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 54E7F64C39; Thu, 6 Apr 2023 20:40:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B771BC433EF; Thu, 6 Apr 2023 20:40:31 +0000 (UTC) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Oded Gabbay , Michael Hennerich , Aleksa Savic , Jack Doan , =?UTF-8?q?Nuno=20S=C3=A1?= , Marius Zachmann , Wilken Gottwalt , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Jean-Marie Verdun , Nick Hawkins , Xu Yilun , Tom Rix , Clemens Ladisch , Rudolf Marek , Charles Keepax , Richard Fitzgerald , Ibrahim Tilki , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Jonas Malaco , Aleksandr Mezin , Derek John Clark , =?UTF-8?q?Joaqu=C3=ADn=20Ignacio=20Aramend=C3=ADa?= , Iwona Winiarska , Florian Fainelli , Broadcom internal kernel review list , Hans de Goede , Michael Walle , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Agathe Porte , Eric Tremblay , Robert Marko , 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 Subject: [PATCH 60/68] hwmon: sy7636a: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:40:19 +0200 Message-Id: <20230406204027.3012532-1-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=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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: X-Mailing-List: linux-kernel@vger.kernel.org Statically allocated array of pointed to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/sy7636a-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sy7636a-hwmon.c b/drivers/hwmon/sy7636a-hwmon.c index 6dd9c2a0f0e0..ed110884786b 100644 --- a/drivers/hwmon/sy7636a-hwmon.c +++ b/drivers/hwmon/sy7636a-hwmon.c @@ -52,7 +52,7 @@ static const struct hwmon_ops sy7636a_hwmon_ops = { .read = sy7636a_read, }; -static const struct hwmon_channel_info *sy7636a_info[] = { +static const struct hwmon_channel_info * const sy7636a_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), NULL -- 2.34.1