Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp81944rwl; Thu, 6 Apr 2023 13:33:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBHIr9u3qJK0jSkTUppiFBTkz6xt3h5Kz2ye1CnbmGN3Q3YVapq9OsKebvyNCNUYwLUtrF X-Received: by 2002:a17:906:8602:b0:946:b942:ad6f with SMTP id o2-20020a170906860200b00946b942ad6fmr7091769ejx.8.1680813225203; Thu, 06 Apr 2023 13:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813225; cv=none; d=google.com; s=arc-20160816; b=SRnSf99B0OktQnaXvBE7b7LEjobW3R/xuSKFHiHNkYAGwttdJkauBFIOlgV1pj0sIy D1CaqdaCFAKQH/8oeu74GcdOf3iPtWRIBYfROH3xM7FMNEgendkKnSfdVJhlwPskv8ix p9MS7IyN2SnTgxPqxbMP2MqcpVMQ+T9CWdCW6yPvbYOgWclalNSzgOeYC7yzJhGTyL73 McgmEPGcOxd9F0vW3OmhlWM1+1BYv7fDfPZMDKLTRT+ibYS87J85xKl4z5dqJXGDzrAU CkrjkHNYbnF80EXUM/3R5FM30fG6YipQNHPymlRzuuBKCvlx1fEqPbaKx25fcltbjk8Y 8kdw== 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=Q738x7YwOS0X3XmE9hZfN9Ce15/MYjfZeq6pSQ5ilpI=; b=ezy0Z3/J/ht+Aqe1s7pux5CClZaAXY4a+SGEC5tbpIF+m0i1ag63Z8cVM6FKMv9Ntd SIl8i06+xKCW/oHAAe/BYOE3q8NMZnMkeUxlBWD1hWtyhJFcxFJIPLhhnlG0lLqaQ5ia CqQ4XSYqu6hCoCbtYgnuI/gvqpyB6aQPg2sJOK/rhqcnTmJenKdUNQFqYX0hzvKI6jK/ eV7RYmcQE77liQYdcKp8yVMm0bTJvp6FX6cSCLKNpQ0XRiUvIV+OpEgnZoyqer1iSG7E eugk0InMt4StLOuFhjL7NBWgg8aLL0rb6Aub+8Wg+QCvCFSs/zUAjwssMfEG0wHeBjWb A0Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zy7BsgEL; 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 c14-20020a170906d18e00b00931475425a4si1771408ejz.495.2023.04.06.13.33.19; Thu, 06 Apr 2023 13:33:45 -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=zy7BsgEL; 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 S239754AbjDFUcY (ORCPT + 99 others); Thu, 6 Apr 2023 16:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239647AbjDFUcA (ORCPT ); Thu, 6 Apr 2023 16:32:00 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50258B74B for ; Thu, 6 Apr 2023 13:31:44 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id l15so4218125ejq.10 for ; Thu, 06 Apr 2023 13:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813102; 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=Q738x7YwOS0X3XmE9hZfN9Ce15/MYjfZeq6pSQ5ilpI=; b=zy7BsgELujF2TPKCiJuSaYGU32HQ47Wnx8gile3JZ+/AgQXY8WdeOW4obbFD1dAIRj uvJw+TfNSxls3c5pR8LDLmgLowzfPQsPuBV/CW056h9mYKnjpTUtCfltSV71rmQHN/z2 /eyqN6fAe25ulQsOOcjeqVFUCuoARqhTmXUuHld3T29X0n09hsvJMgBzTEIMKTFW2km9 /IXj7PDEAjhd4WAMeo8Fxh+szfqGiQOS0CXJTWgk4wpQ1uexo3u3NO41aKEWdOdVtnBL WqCMfNpldHDYZIWn27eqxOPcANqyCMYrQ5IKv4Si6qKXHV4X+Qh5rGVvEYsb/EPDUFMh Hq1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813102; 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=Q738x7YwOS0X3XmE9hZfN9Ce15/MYjfZeq6pSQ5ilpI=; b=YP0SsUbsMXQeX+pM2vn7ws6RGqHGEYCKlVnxQScTCzn0BLwSKBJgzpd7FBx9eCoPpv cYu7RbvSeDrifjmm5EJlq4q/sj4zd4vwy23oLurN1UsdLrqIg/cZYZKTYtfCi80a32qR Ml/q3ZxbL57FKlJT/fYwPfHxfkk7c+2AmkT+CO3oaBieTW9yq9YTVCSCvSOWDzOa1zev RAsY8KJ8dXUj492HPSZIujUnz/DZVn+1FgVux/t3J9nzGsuNHBzNV/60IEQCfKNLfZa5 so1LRknIIqor7D7wGt/CDemJ515hEevAm07u1OQ7dluTqG/3dtejQGq9WVFNLsfmFWxp JiZQ== X-Gm-Message-State: AAQBX9dKcHRcoNkg2SV9n9vlCJ+qvTJ55/dV3grnGiwADF4cKlEQvdQ6 ufw1O0wIGJzi9iMDdCWL0WDzxw== X-Received: by 2002:a17:907:6ea6:b0:8f0:143d:ee34 with SMTP id sh38-20020a1709076ea600b008f0143dee34mr7334618ejc.1.1680813102050; Thu, 06 Apr 2023 13:31:42 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:41 -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 12/68] hwmon: corsair: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:07 +0200 Message-Id: <20230406203103.3011503-13-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/corsair-cpro.c | 2 +- drivers/hwmon/corsair-psu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/corsair-cpro.c b/drivers/hwmon/corsair-cpro.c index fa6aa4fc8b52..463ab4296ede 100644 --- a/drivers/hwmon/corsair-cpro.c +++ b/drivers/hwmon/corsair-cpro.c @@ -385,7 +385,7 @@ static const struct hwmon_ops ccp_hwmon_ops = { .write = ccp_write, }; -static const struct hwmon_channel_info *ccp_info[] = { +static const struct hwmon_channel_info * const ccp_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c index 2210aa62e3d0..dc24c566d08b 100644 --- a/drivers/hwmon/corsair-psu.c +++ b/drivers/hwmon/corsair-psu.c @@ -571,7 +571,7 @@ static const struct hwmon_ops corsairpsu_hwmon_ops = { .read_string = corsairpsu_hwmon_ops_read_string, }; -static const struct hwmon_channel_info *corsairpsu_info[] = { +static const struct hwmon_channel_info * const corsairpsu_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, -- 2.34.1