Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp15550rwf; Thu, 6 Apr 2023 13:38:28 -0700 (PDT) X-Google-Smtp-Source: AKy350ZVv2Ad2pcTzIfZWJBAp5yKojLGocqyMtbHGytW6lBGnT6mhPYVo+qGXsULdSkZ9VjbJ4Hw X-Received: by 2002:a17:907:3e16:b0:906:3373:cfe9 with SMTP id hp22-20020a1709073e1600b009063373cfe9mr228192ejc.10.1680813508361; Thu, 06 Apr 2023 13:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813508; cv=none; d=google.com; s=arc-20160816; b=jpdjQU2QmgiKbaGDIRTPR1swUsWRoez1efIeRYZbvAYA5RPOnXtr1wpx/DI5KdbCvI ijMuF8WGHfpNHkFRDKMPKAn/V3lqs9TUz9CoVH+RUiogeDn6257GPJjk0+R9Vz+/No2F SsFk+tq1WFc0vwlC3OvNGhxo/OLsg2kPBe/43IZcElbFzM/b/wktt3ic6HEeqbMgIIH2 Ti1ZO1W7EB9fbIFuGKO1TfvzXZGCB7cIfDPtHehcUWSQlnSHQoxf6rQGjcppu+de42e0 AJZvYbl+61gSfumIoKiPEhlWjU5XOqxGaP0rud8E46KFWLvtaG2jnGVJZ6olttvX1lBq lpBg== 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=vhwGvdUF+7fwd5PhumtiSc1TmIcW9E51JLUOeBF/1GY=; b=jwP5w1sQVqzg6gT9+QfLX9cYceBzvU3tixR3wr33G7/XR4eQLlmggdtJ3J6r0MCMDE XPxv5+QimwrKroA5rVz7FcPKUrHFkThqTBwijKRfhTGYVk4eyJrViR1yGTv4577pPArX U1viMHmXhL9L5pfkVRk6D9m9w0kBNWABiP/gHh3TkS3y4RF/go/6mgE1CikNe9ymVinB QOdzGa62Xq7SL0PKZPVw7SoKRMWjAUViXL3taXBVslzEDItLH4MqEfDrERfuUJoGAgNc JENPJW3yFdQdZBZaSwQJ5RBEgwApZGfB1p89ycXjubzzNTqLuR0TbnS42btd2tQhdJ+L ndvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b9hQWvBc; 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 i13-20020a1709064fcd00b00927130f010esi2497387ejw.58.2023.04.06.13.37.37; Thu, 06 Apr 2023 13:38:28 -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=b9hQWvBc; 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 S240251AbjDFUf3 (ORCPT + 99 others); Thu, 6 Apr 2023 16:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239891AbjDFUex (ORCPT ); Thu, 6 Apr 2023 16:34:53 -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 C1CE4CA3C for ; Thu, 6 Apr 2023 13:32:50 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id 18so4221438ejo.13 for ; Thu, 06 Apr 2023 13:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813169; 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=vhwGvdUF+7fwd5PhumtiSc1TmIcW9E51JLUOeBF/1GY=; b=b9hQWvBcTnT1CUox4p9xbf1lbIXxG+RcvFWZwo2pgara5YORXkPLb4bfBDlokb2BIx hZhHAKykuzPaPpfC7buTpoVB/PLte4iZ6zHzYuapEjD2RmuvnC+v3fpPc23ZA9tUG8dc UIfJ0ex6pVJ6IzIaABBmX48wcvbnLstESzKnIm+4wCvLvUO/dbh8pAUzkIeU14fR4uPg vi2swW+1RI4Gr1xmu7z3k7iq0UUqugnDJ/4HQD/29BTFtD/te1wziIcY7eUiMrJQjmXT HihL1r7FuCTTouAufUEhJPOUlUNET9+gaWESIsAub9bGEvpwAikPbdjoVpgZEVoJaaVs VOaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813169; 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=vhwGvdUF+7fwd5PhumtiSc1TmIcW9E51JLUOeBF/1GY=; b=GLgvTnDGYBr3x+o+Pi+hL7/Ka6dZYRM8vdQOR1oFNmNl8p3DvcZdioaqhbo22GIe5h EOCoAG4hAecs7cAEXV7L3I3RIO5SDikXaxwS31EnNc+AHoGqw8OEtSm0hqs97nedPaZF 52+mjmcDt9lR/DzTdaaKtbfZmLeJkqmtPIYMASIA4Qsz04KfUY9pm0FBJO0nEXliv+82 WtQWlI3T9ozIV2fomr1Wf7Jh79UQjmKxmkokV1gZ59TiACDZBi0r3EHkVV6QSX2pbJ9K fGUEOvNRlr8pogaZwirDVaANyq0fjdrH2GK5O1zyf1hw/L2KqASWOs+ojLTVUj/NDXnR 7AsQ== X-Gm-Message-State: AAQBX9fzrvshmGNJhPCkp2kodyw4hMNWVI+l9Yf/Ej4Y3g6Dr+Pblhcd TWA+g4CMdzZlCOmvsAM0zVLH5Q== X-Received: by 2002:a17:906:d787:b0:920:388c:5c60 with SMTP id pj7-20020a170906d78700b00920388c5c60mr119377ejb.41.1680813168917; Thu, 06 Apr 2023 13:32:48 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id s4-20020a1709067b8400b0092bea699124sm1210330ejo.106.2023.04.06.13.32.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:48 -0700 (PDT) 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 , Luka Perkov , 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 40/68] hwmon: max6621: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:35 +0200 Message-Id: <20230406203103.3011503-41-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=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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/max6621.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/max6621.c b/drivers/hwmon/max6621.c index 7821132e17fa..0656eb1e7959 100644 --- a/drivers/hwmon/max6621.c +++ b/drivers/hwmon/max6621.c @@ -449,7 +449,7 @@ static const struct regmap_config max6621_regmap_config = { .num_reg_defaults = ARRAY_SIZE(max6621_regmap_default), }; -static const struct hwmon_channel_info *max6621_info[] = { +static const struct hwmon_channel_info * const max6621_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, -- 2.34.1