Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp84994rwl; Thu, 6 Apr 2023 13:36:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YKpZW+tqd4C9t4am3UGspcDyBmxzB54aKW+XCv+RF+q00CL3Jr/Fy6Nt97aVtpaglYQP/y X-Received: by 2002:aa7:d0d6:0:b0:4fb:9b54:ccb8 with SMTP id u22-20020aa7d0d6000000b004fb9b54ccb8mr727861edo.21.1680813412364; Thu, 06 Apr 2023 13:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813412; cv=none; d=google.com; s=arc-20160816; b=00+jqmNBV2inrwLmEhBLAnAd403Z5KWW13filEoWEXt4NRwdjR8Y4VvBFkeKmxPl0w iQ0pg5nwHfOuwftNgsFDZtE7y/r3nvC668MKeNDlNqcVGqSxvJkjYQ5wVG3+p6gPFOgT iejyGR89GQhyjcjA1n61L6D5c2kVWJgfDNpntsMMjCbZ2FNY3wx0rK0cB+V5VtxaJR6l UKhfOWxXPbZ3L6HR+V7xFOylnWJXGME+H4ckC/+Se5W4DejVrv9LNky0BPHVMVH0f+kk S+Wkgo83OQKtHtRhzyJ3D7XQNbh0jCIIGqUleur7TrWSoA7o1T4Pm1ZAna/4NjcED7M4 +p6g== 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=nZ9T/kpTs3+G1fhFIIx9oKlSAleOFgKL5NAv0H+g2QE=; b=eupoXjkNAUTA8D8m+9DRtj2gxGKrEmf/IDjSEDqRWA/9bKjNl5MvjnIkwnZNAGOwG+ pC8W23kNi+G9HRNVXog86k1/27JtQ7o4ydRKBZN4lo0iXco6lE8Y8ecChrDD8oMCo03B 7+vg1dlY8GvQ/zWeE0p/LY/nj+v+QPbWreSZjxZpJ8bc3TotRRji3ROpYbDqFxKZk/K3 geBwvY8tRmSWdbY/wcKeapEF0XYsiPzk6FxW6A80XW1ERx1OahLZhhhoXdOeLxPRLuCS kg9Ea4trt3lbx2MKrNoWC3x+LIW4R0ckRsJRn7MWbPRUcBpLULRlm9G0yU76Ldq7NdQV oGNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LaBtgceZ; 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 m14-20020a50ef0e000000b004ae08218725si1687901eds.303.2023.04.06.13.36.09; Thu, 06 Apr 2023 13:36:52 -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=LaBtgceZ; 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 S239586AbjDFUe5 (ORCPT + 99 others); Thu, 6 Apr 2023 16:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239470AbjDFUeT (ORCPT ); Thu, 6 Apr 2023 16:34:19 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C026C164 for ; Thu, 6 Apr 2023 13:32:38 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id sg7so4216327ejc.9 for ; Thu, 06 Apr 2023 13:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813157; 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=nZ9T/kpTs3+G1fhFIIx9oKlSAleOFgKL5NAv0H+g2QE=; b=LaBtgceZE8cV6EyJxI34ydQeqmL2JrBiiWsn3ljlZadN0XYLm7dNSfZ8T2h7UC7VSY R9iZRsxoetgZjnylmORQEdDnSHn343WSLF4dOBaoqkVgRW6dtZ2faaea4Kt8geQPfDek /EwK30ybidaDD/kGorrww59rn3A2FTkEbUot+QlP7YzQtM2UpQAcJVut2PtnALeUklta dTsI92V3Uimpw1MV1wMDiPWs61lB7jEYVWygbgNBDtVSGxMsK2MZlztYUo+PXECn4IL/ Ku6OIg7VNoAvLLvyl1xcyz4St3iUxms9yT4uLNi7quHCHlt+jC8Gqr+654B8kSikeLAP FzZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813157; 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=nZ9T/kpTs3+G1fhFIIx9oKlSAleOFgKL5NAv0H+g2QE=; b=K1Y45RRU1PCMxJyLV9x089V8k+DvtajhuVS5tcTox5QDj6KI9kst/y2+K7RMQiHdX5 GeUDxuvIOF++vo8/S59AMmRyzp0paQ8VpnZn4/9U9mRBRdE3Kt7299YGLPkJF1duN3yn JVokeneZ9V4Yu8L2/UA9HBd/Rclcq3JQnca0cOxgCrB6nJGsFui1VdCDHxyVa4yQw9C6 bNPwFhzvRTabHjd9jZ9YElhXNd3IKP7VEnoMiL/OX9fn0t77lmcZUMBROsVwHc9XmtFm OROJgFf1E+i9kz0z0rhBERXDucifyN2+avVBFcl/BnTD8wQ0oIqWnCAeE2VEkj1Ggxre acqA== X-Gm-Message-State: AAQBX9dB3gCoIaspBFUe4eNi5VX9QFr/yMAjXOv+o7tQuk8QFnuogLSR zFyxkNJSCrLOD8aY5mNbHCLEQA== X-Received: by 2002:a17:906:c9d7:b0:933:1b05:8851 with SMTP id hk23-20020a170906c9d700b009331b058851mr170737ejb.16.1680813157439; Thu, 06 Apr 2023 13:32:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:36 -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 35/68] hwmon: max127: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:30 +0200 Message-Id: <20230406203103.3011503-36-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/max127.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/max127.c b/drivers/hwmon/max127.c index 0e21e7e6bbd2..49de1d2be294 100644 --- a/drivers/hwmon/max127.c +++ b/drivers/hwmon/max127.c @@ -285,7 +285,7 @@ static const struct hwmon_ops max127_hwmon_ops = { .write = max127_write, }; -static const struct hwmon_channel_info *max127_info[] = { +static const struct hwmon_channel_info * const max127_info[] = { HWMON_CHANNEL_INFO(in, HWMON_I_INPUT | HWMON_I_MIN | HWMON_I_MAX, HWMON_I_INPUT | HWMON_I_MIN | HWMON_I_MAX, -- 2.34.1