Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp82251rwl; Thu, 6 Apr 2023 13:34:07 -0700 (PDT) X-Google-Smtp-Source: AKy350YoiuCPHNq0Xn37Iq/r7/Hp+f7gJavMJdN/UrZ9lQdzBtI/7IQAhIPxxCbAPtP1Wu+l3g6B X-Received: by 2002:a17:906:24d7:b0:933:3b2e:6016 with SMTP id f23-20020a17090624d700b009333b2e6016mr272967ejb.7.1680813247282; Thu, 06 Apr 2023 13:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813247; cv=none; d=google.com; s=arc-20160816; b=KXdUOjymB3V9DEKJfgTJS27zsU7TY+HW+LceJbkS9LIxuJDMEl307zmeT+M6LQmQwo p5bSquRMoXlhvf7BuMrZovF8H89ARij1BHgBgjziRcIm4eNP5rkIDQUA3LQALnQW99Nz 7Lz+kMC0A5HuaVSrm6+ToUYgCUB9UJaf8x/XN0ciyTW1bthgGJGyvH95/UlK4KIGSdl4 wZnk4UDLa1R/qeGolCkabZMTxqAke56g/uyi0d23AnQ9VujYgf5WcGsoQmol/a6wop55 jMc+qWre7W2VnCz1KEDEC3fe/zc6J6BzyOZKBEaibFpeVpBWYy0Xm2qJhmla8olkZQ2w 0Lpg== 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=IMDS7DWeOGd1oXvvAq27Q40JyJ5tNkqdlBZXR66E9jc=; b=ZP96s5sNLtvmYHyHdQZlS5ZjQtHFl9LRvoXz+BNAaSi40rEyrh6FPO7U1B9kL6LyLX LuW+fDsQoEYkYPyTR5RxVfgjCG7vaoUY8ZnpWTJVntyrm9f3TnrZeCfvwihZfrk1+Ldr I3i0eaG93r1t3TY5pIJV6bD4DaU5FR1W0ZdE2crldy1ADUGpB8gMHXh9Ov46EKAROX+N wWHNF4pqkBXcR97NE6w3w0dGSPiwKOJPbv19Hx9lwKOeEsSIl45oPA+3xZ4DZo0qUNCt KTboHFLKv283e2rJPzyPr7XkrtNE38etqS9OY4qppkoC7CY1dpH4xOcvAVGoTqWVT5Au qxug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lGzZVAzr; 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 j23-20020a170906475700b0092ce291dd12si1795094ejs.395.2023.04.06.13.33.41; Thu, 06 Apr 2023 13:34:07 -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=lGzZVAzr; 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 S239523AbjDFUc4 (ORCPT + 99 others); Thu, 6 Apr 2023 16:32:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239672AbjDFUc1 (ORCPT ); Thu, 6 Apr 2023 16:32:27 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83700BBB3 for ; Thu, 6 Apr 2023 13:31:55 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-4fb22f1f91eso1384944a12.1 for ; Thu, 06 Apr 2023 13:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813113; 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=IMDS7DWeOGd1oXvvAq27Q40JyJ5tNkqdlBZXR66E9jc=; b=lGzZVAzr/SMPp5RADHMYy0lwwj1yV1xjGhALicSHU5BGnrobNZovzYVnY41wP8R7PO djbqeoZm0ay5iLRDoFOdVDJaJK2TK8hr9uzKetRKHEtIOhlMPsxzO+L89dLaS4iKnBFj odwt7WUbOvzUgXHttgae5xK6MdLktNuDw0E1G4i620jz4z5OcfU2dIZ0pnQG0bPhMo0o 26AxsHgdVYA7zCzJ96BoTELp3riSwXeeB69Hmk1uZkmW69HU5lY7ZhpzUAYyxoWLm4rb sl8NwZdrT8Fpmbg9DjmgVjrwiM7XfJKKjDFkrTfVw433fe9LdglO2cwbzVeWT6zKs6f3 jg+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813113; 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=IMDS7DWeOGd1oXvvAq27Q40JyJ5tNkqdlBZXR66E9jc=; b=QMzBF2qcnyWF3qGvHUPZ5MtEJnkXefI+h6jHLsxZBNxL5kBz8dZeAXBgVdDtarjwyE YQlTCW7OaVtni5xtpeIJ7wz8fusbyrPN1bz47Tc3384Y7mhgTv3l+GKvE/5yVAdXYSg4 +fo+5tDlqpkPm3n2WDPRYvheXQ4peLK2KMd4XnC09oMDndHSNDxziwXkuV/it3DyXXtj B+nJwSuZBOjZY2saR8a5zFcwyKD9O0DaPE2s3h2QBO7sTKToqcZ0qrwTuDkuFdBns5B6 +4ZzAbKfNETAB+eebB8YNnBygoGNuEpg5f8irBuZFMl1PGrpM6lhtezmNTDvifgmhWTF tGpg== X-Gm-Message-State: AAQBX9f02hySPScqyyMHB7+O6CZC+frtdl1GQHHSGCCItFe8KWo6N8ti 6oU1P0dn8WfmjIGakM7rqAh5LA== X-Received: by 2002:a05:6402:1653:b0:4fd:2007:d40b with SMTP id s19-20020a056402165300b004fd2007d40bmr804080edx.9.1680813113718; Thu, 06 Apr 2023 13:31:53 -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.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:53 -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 17/68] hwmon: gxp-fan: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:12 +0200 Message-Id: <20230406203103.3011503-18-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/gxp-fan-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/gxp-fan-ctrl.c b/drivers/hwmon/gxp-fan-ctrl.c index 0014b8b0fd41..2e05bc2f627a 100644 --- a/drivers/hwmon/gxp-fan-ctrl.c +++ b/drivers/hwmon/gxp-fan-ctrl.c @@ -168,7 +168,7 @@ static const struct hwmon_ops gxp_fan_ctrl_ops = { .write = gxp_fan_ctrl_write, }; -static const struct hwmon_channel_info *gxp_fan_ctrl_info[] = { +static const struct hwmon_channel_info * const gxp_fan_ctrl_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_FAULT | HWMON_F_ENABLE, HWMON_F_FAULT | HWMON_F_ENABLE, -- 2.34.1