Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp85549rwl; Thu, 6 Apr 2023 13:37:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZGEVehrjpTGi5BLN+UGlr61tEXP2/G4pnhUmB3synBzKlyJ+c0Hj4XegXD1vaJzFXqmDbW X-Received: by 2002:a17:906:b247:b0:947:f4e2:ad6d with SMTP id ce7-20020a170906b24700b00947f4e2ad6dmr145661ejb.72.1680813452511; Thu, 06 Apr 2023 13:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813452; cv=none; d=google.com; s=arc-20160816; b=ZefI2zOgbnf3syff9/NLbYRYc0xnE3Yj0Ys9/B6bxzHIzrAMaZIbQqD2e9JX/9ETGP w3HaqG9zDLC8GmenEY6AGqYmbcr1sJ46TYC9ebnwwMKxzKOaKdjia0pVIf/nrjJVuoi4 /HCfp1bPxF02Bl57dXyfAExndmEjExSVch6fJ6zt7fcVEqSpzCuTzVAhLdnn69VHxv5+ BlZdmYUBHMj5PwEVoU0KP92w6vx2Nk+ApA+7l9vgI6ZD6HI/KlmspALdie4e4oC62rQl 7gzQGoAKHQboa7P4KgiJUWcUNMgyM7Yb/qCHiSokM/iYVEqXOeqhbeDCCMJeIllYGv+I SR8w== 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=zeOUixAi/gafQse1TlsC/rFgutjhxjD+isGU2Fyr4iw=; b=ADmU36GAo1sIJlUqnJCA90v9zLTjLBbl1mp2SHk/udqaiyzjWY4d+WXQz1cOrzPBDj 1i8N3YjEVCBjK57P6JQCcZaHEl7DF0DO5nb3/HZ5qbY9IMcyMyopxVRyd5aflzYMDgcs aVJpFlyzuIJQkqL1u1y73QZvix0RSnOVKjZka8s0dzWcISXd2A8L5ItSQ5vvAAVcMrhb sW6Pod14nBaDiqdD+ZNDPB17u4BoTKGXofQx4QQNjLw//l6yJUyB4tnAbEDF6oPsNrXj cCeIihEbGdHOdIHR4RMH/ce+P+T4EQhotJpMhDAN/L3r8UR+pwMPnu4ZEKCpM7G7yBmp LCFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qBt12SWq; 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 ti14-20020a170907c20e00b00949d0e5e8fcsi1649297ejc.39.2023.04.06.13.36.53; Thu, 06 Apr 2023 13:37:32 -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=qBt12SWq; 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 S239971AbjDFUen (ORCPT + 99 others); Thu, 6 Apr 2023 16:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239933AbjDFUeI (ORCPT ); Thu, 6 Apr 2023 16:34:08 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1058C668 for ; Thu, 6 Apr 2023 13:32:36 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id cw23so4220043ejb.12 for ; Thu, 06 Apr 2023 13:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813155; 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=zeOUixAi/gafQse1TlsC/rFgutjhxjD+isGU2Fyr4iw=; b=qBt12SWqNaZLTSfbFTSlPCwVywTDl2S06oUkfOqIBFP491mmTtMXn+faATcraquTQY qYMwWn2c0DV+KHUKv2P3TF34GbHgLADNWPwHg1g3lCstScUdIkLMaSX6B1SIkNS+gMQ4 3V9zRTZJkkMZPakZEZpYRlrP0PbU6YuxIMuLvcoxKw8OPoW6fmG479okxU0RQKEVmjCL Rl1aoHbslbYgG7+pSvsIsh4YbmXmxIIJCJELAl5iUTskjOoLf/CQyGJQArMmZCJEFwRw wCY3FJ3YPNaKeqrieDpWQst6k++ZhDVt3vJ+FCW0aLks+kb4Uz94C9Q9sQfQzyWFiq+f zLSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813155; 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=zeOUixAi/gafQse1TlsC/rFgutjhxjD+isGU2Fyr4iw=; b=ffNe5zAjLStXHDZOskDaLEIs/J4uKu9OoZ3c2cPLQlLcAAvAhqZpDaAdVFUkqDgBUe WP82LxfuwxGsR+CaETCXgj6UF2+QfCD6PNVnObFjLhu4GYYLpaocyiKnN/ZQh0HwgKLv jyLH2VFaX3q/K1nt9jns+qx4OZROnB2V6VFIwA227mTn+nswGGQw24hGtAi0eyM/iIc7 YcGeyJjYNvzUaNwSm6rHYAJbMqIVxluIz5ypkpyrrIWWlgWoxkzsOrd0yHq9g6EFBt3c f2mTZaYgzDo481t4Dj43VjzIwni8stFXSwnSGf08h9EKXZ5Tzm31pWtDXCTv7Tf83o/g Z02w== X-Gm-Message-State: AAQBX9c31qnoeg4RoVACjTN37TNT0OLiJPl6EC7w+4rDFbUMPdvuitgw Jl+iIOVexCQjqAMu0WOX0bP5/Q== X-Received: by 2002:a17:906:d04c:b0:937:4001:6eda with SMTP id bo12-20020a170906d04c00b0093740016edamr132439ejb.38.1680813154963; Thu, 06 Apr 2023 13:32:34 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:34 -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 34/68] hwmon: ltq-cputemp: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:29 +0200 Message-Id: <20230406203103.3011503-35-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/ltq-cputemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ltq-cputemp.c b/drivers/hwmon/ltq-cputemp.c index 019e770d4c0c..08e09a82acab 100644 --- a/drivers/hwmon/ltq-cputemp.c +++ b/drivers/hwmon/ltq-cputemp.c @@ -65,7 +65,7 @@ static umode_t ltq_is_visible(const void *_data, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *ltq_info[] = { +static const struct hwmon_channel_info * const ltq_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, -- 2.34.1