Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp84012rwl; Thu, 6 Apr 2023 13:35:52 -0700 (PDT) X-Google-Smtp-Source: AKy350b9BVtVo80K+42oqmrv6jmum6jUMhptHBjtISGysKkEaYpvGmTk8k6CBdEKce2afO5f1yYH X-Received: by 2002:a17:906:f153:b0:921:5cce:6599 with SMTP id gw19-20020a170906f15300b009215cce6599mr128849ejb.41.1680813352621; Thu, 06 Apr 2023 13:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813352; cv=none; d=google.com; s=arc-20160816; b=OdYjSzQu0iEUH0jsW8jg/H8cYTC37FRazQYS5o9LZBQVymWxQmr5dZmp8x1oC3XBUO hJcir1Vd4D1SGu3bM/uwDVObDrcMHm1Lpa1FGB9sKGd+CVeDG4W6CCx6lnnxgTRkJvij OX1gCkbB+J1kCDMKlTRPMAeucjgUzA/uox100pWRt0hQZ9ClEKltCXbJKNWTw46O34eF UZ1UZR70Xw/L9Tkd755AbGcQ0rM6c5MXYAavLUyH18TJoh6i7UCaYD6FWACykOQ2m4YM KxATvkdWMFbSIiZMBBOhI5+RkJcabBrvaGOzN95/gcPQdvaSPTL8gXoidtVVau/2O+33 a04Q== 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=i6JbQJiorXC7teiECO3hQBxt4FlCv2MlUvUkFyuxz0k=; b=PGLV/+pPV8Os/kQi6m68PkhcQD5CM4woM2bwC9TaDxys4KblOtPAsGtPFX8mUdwaz/ aFZy9j+x5JOIkU6Gij+Od7qaOcVwMwHUox6DtFNiRYy4HocjowT4ry2AvYgvH17h7inz FRzI4pHpxSYfh+T37qeDCCb5QeEJkIuM1Opw9rq2W1foetgdNLspL1rhdBwbK33BPwlj 9wr1kHnTBZw3yFw1dMNtS+oH5PA1VLW5OrThelI7R/1IpwdYpawQiDpV6HEbLPuep0e7 QnG0Cmldofh1BQrMnHr5sK43AgRfSjIM0e2LVIaV2mW1BnM9AnGNrqX0ByAhCY15O+MX eGhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U1ICoYYw; 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 o24-20020a17090611d800b0092f1d91787esi1908090eja.299.2023.04.06.13.35.18; Thu, 06 Apr 2023 13:35: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=U1ICoYYw; 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 S240103AbjDFUe0 (ORCPT + 99 others); Thu, 6 Apr 2023 16:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239906AbjDFUd4 (ORCPT ); Thu, 6 Apr 2023 16:33:56 -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 28973C14B for ; Thu, 6 Apr 2023 13:32:31 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id g18so4217818ejx.7 for ; Thu, 06 Apr 2023 13:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813150; 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=i6JbQJiorXC7teiECO3hQBxt4FlCv2MlUvUkFyuxz0k=; b=U1ICoYYwYwbOimkM7r9J3JON/FvSAKmAqIWF9gCVuWs3wiDIFQtgPQz/XK8W4diEsB eg5lQiZ+HP2WyZaBwXj8GEJlu4Q+QJPlmnOZGF0MguHwBvS2/iMP2yirU9rim7RbHAE3 /ZDGABwquYh9GoCpLqOUunF/XtxxBCtJIq2RWwO9j1NR3GbtQwNrSW/ehxBTIuyY9Q9j lw6F/flDtl6Q4JW1pX0P1zj6gnu5Y8WrlTo9KrZtebRMn/OJr7yTONxCwePVGAypeYjN 0aFTLsdhT4TcNHCGg3HPEmOHIWIvxb1kOfWf0EKAUE18sxqvCXvLTz7rt4JC0XSVzEKi +CgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813150; 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=i6JbQJiorXC7teiECO3hQBxt4FlCv2MlUvUkFyuxz0k=; b=jZUM8IdMKGiCuJsmDdLlam/ofBj+i6pTRbQFhxarQMPDYxPTINIgp7t3stn6jhVNsg U5PSE8Mc7gwQ5pI3dotWYZhCI7Pex4XQiJCYy98gNdfxU0w5m3oFTWWrdnns5aX0r5nG hjulTsUwFD+9j3wmfhK9l1x3rJaBELZiC+Za9BLEM9OFWpUJT6w36gb752dcIAPaupKL yYPtybV+i/VBxwRgVMYAgzkFP/cI3YH6/zZOs6uKoB33yMK3mrAa88irLPUWq2kII/Id r+ck0KxZgq/VnqAidNCskOLoue+jnM+JxSy/ifBA7rMg8JPbm51m+wV+LOECn5nr429Z sFHA== X-Gm-Message-State: AAQBX9ddDBHG0C7vJKaar5WzTS88YAFTPs9guU9mtOlzKIS29Salw2Dg X6UTVQsFtNJMOu1EBYSbDG2jXQ== X-Received: by 2002:a17:906:cc5d:b0:932:ac6c:7ef9 with SMTP id mm29-20020a170906cc5d00b00932ac6c7ef9mr142631ejb.22.1680813150619; Thu, 06 Apr 2023 13:32:30 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:32:30 -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 32/68] hwmon: ltc2992: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:27 +0200 Message-Id: <20230406203103.3011503-33-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/ltc2992.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ltc2992.c b/drivers/hwmon/ltc2992.c index 69341de397cb..429a7f5837f0 100644 --- a/drivers/hwmon/ltc2992.c +++ b/drivers/hwmon/ltc2992.c @@ -812,7 +812,7 @@ static const struct hwmon_ops ltc2992_hwmon_ops = { .write = ltc2992_write, }; -static const struct hwmon_channel_info *ltc2992_info[] = { +static const struct hwmon_channel_info * const ltc2992_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_IN_RESET_HISTORY), HWMON_CHANNEL_INFO(in, -- 2.34.1