Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp81174rwl; Thu, 6 Apr 2023 13:33:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZVn43IMLewXZnKDhRmWpZYDvR0qkyPq9mtSNP6/zqpmMg+lCEjJDMtEG0y1efdpnWMVsZn X-Received: by 2002:a50:ee99:0:b0:502:3376:7872 with SMTP id f25-20020a50ee99000000b0050233767872mr809594edr.35.1680813180082; Thu, 06 Apr 2023 13:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813180; cv=none; d=google.com; s=arc-20160816; b=mhJQd0xY81pfYxf+dXXQ+v9UQu8J1jC1L0e83+jTTjYi9VSbYmQ0OilRngfxSQk7z0 Lxq6YWwOCdAzQlFbDMkHokvhrGTurvk4kX+ARwOecjjozQZY3INq1DK+fEybcX8J9vXf 8lmnrdHa+kYLy4HyTP7V//DpNO3UyV84XU/H0e5Xf8oM/xQq76Ad/w69BNeExyKkaMER AtwUSbI5tezZJnOSbqwrCZeZEOzIPZG8y8T5DhaaXUMwBZzP0J4NwnnMQEujCloGngF6 YX5gVHFc3T/JPh8UnbBJRWHJeA2yE/wfzrBzHrNdUlBlht0oguovhS+LuTXZV8JccpW4 oeEA== 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=+jy4+y+10/TyiIFChl0T7AFfRzku+iJoGxMYDy55vI8=; b=CuybDyVvvisNd+SXZLAhfhoi4D9DEaxfi+KrR8VzABmCTEE3ox6Q1JSaQ89CGaBUxj MDYSLH1E7WPsBlBwjQ3fTfjDD8xzcklKwiakk30a3vFZgyGOlGW7FRTLdPQcShbQsp04 SVoICWzkcjpuLqQW8+Bx/TglKfCcChocpzme5yL/q0qQ6OCYPD8QeInqaF05x/qUI5L/ 5dms0BRE4fE3ZQFQPL5zHQMJqIFBlHapZel5D8ZhCKNHcoIoMcfNQjh6WEiZ9mG9f+ZW VPnk+tg6gQYQXC6kzBDn+hTU9qK3JknsNR8SnLyS27jeVUUhcoCX5IPC90Rrimzj9xf9 xMNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C7UEqgo5; 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 g21-20020a056402181500b005026ee01040si136186edy.687.2023.04.06.13.32.35; Thu, 06 Apr 2023 13:33:00 -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=C7UEqgo5; 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 S239344AbjDFUbt (ORCPT + 99 others); Thu, 6 Apr 2023 16:31:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239468AbjDFUbg (ORCPT ); Thu, 6 Apr 2023 16:31:36 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F639EE0 for ; Thu, 6 Apr 2023 13:31:31 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id 11so4211122ejw.0 for ; Thu, 06 Apr 2023 13:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813091; 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=+jy4+y+10/TyiIFChl0T7AFfRzku+iJoGxMYDy55vI8=; b=C7UEqgo58Fo7L/uGfib9xvTeji1SyctI3Jt3RyaklkQkG9wMZXwJF2NFgRec6GE317 tiix2DR7NdtJhp8TfR0kZouIoGuWvMnAHvxXNvD+QB+k5T2KTkaF70wv7E/KLqljJSYf Zxra//4DMZ5HNVn0l49kbK1gazuq+P7VYSZUEvnYEzoE4d7HwmE9U02GGYeVEyCK7gqW nzp2vY/v3+mMuQPYzUr9x8mvVe9VcoQ2BsKW9YFfWbHmM4UMXrZJFc6epU1F2TLM/2/5 o6TUIheD8NQMPc0gJzGVAEIVBp2eo+Bk6lpbrKokM3Km5Qnnr50VnXyT3JLfLuzQowcI rcnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813091; 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=+jy4+y+10/TyiIFChl0T7AFfRzku+iJoGxMYDy55vI8=; b=dD0dRPh9049VmWAEqu20cMR0/syenpU1Ywa6M+JHZpq8AYppbX5nmpBAvot/9370C+ xU8M6wf9Bc4HmLcyzpwUtK4gWoe5XcKDheZgfQ/XUCJE5DUq5+lqgLE9EirPY04l+FHF FfFjFVktArh04U/dKEmIcW90BnNwH7FgIwtZnpgnG1WavA6YhNfdWh4nrzTOTwl0vOwi XYyaYuBg3M3nL9FLZf5tlKqqF7SVZk2H426rCRDgzLt6QYA6zKHhE96c3fky5wzmbtsg sxYQI9f7LN94z+5s7r/GWRbu/AuDoA+pL0+bOSGmAj7rWbCMw/3skJPcntSG4wtpIU97 dqdw== X-Gm-Message-State: AAQBX9dHOrq1KZVS0NcccyD7IitU5rSWWNvzCaN+lu/3EmydEXIAAfwF p27SaiC03FXQPMEoYSUqaOU1xw== X-Received: by 2002:a17:906:844e:b0:921:da99:f39c with SMTP id e14-20020a170906844e00b00921da99f39cmr201230ejy.12.1680813090969; Thu, 06 Apr 2023 13:31: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.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31: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 07/68] hwmon: aht10: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:02 +0200 Message-Id: <20230406203103.3011503-8-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/aht10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/aht10.c b/drivers/hwmon/aht10.c index 9babd69d54a3..b8fe3f7248ba 100644 --- a/drivers/hwmon/aht10.c +++ b/drivers/hwmon/aht10.c @@ -270,7 +270,7 @@ static int aht10_hwmon_write(struct device *dev, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *aht10_info[] = { +static const struct hwmon_channel_info * const aht10_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_UPDATE_INTERVAL), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), HWMON_CHANNEL_INFO(humidity, HWMON_H_INPUT), -- 2.34.1