Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp80981rwl; Thu, 6 Apr 2023 13:32:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bPy5mmfIVYQa2fsXdg0yx85bm1QHt+bNKWubMALX6w5+oZ3Q55U3y+Fu4EVrM7ljg8ciOo X-Received: by 2002:a17:906:3d21:b0:93d:770:25df with SMTP id l1-20020a1709063d2100b0093d077025dfmr133169ejf.37.1680813167501; Thu, 06 Apr 2023 13:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813167; cv=none; d=google.com; s=arc-20160816; b=UGFZ9sNJkTvpDrHhZsaZRkDasw3oQETdtZMiEBUOs5GtOKJCNqo+mHTvIeiyyJsYIe 1HyBw6gOI3+DjSlmzTYsYqGOcXWx/qiGU+sn3ssBXwYhXYdZy+jdhHM2uytHEHjYD4AQ jApxNZiKqNY8R/7RZX1rMCZ+SaZromZ3Pf59/y4WhuE5c/QXVG43APmzTy75keuVrAGo vDZOx8u25XLERq+FSBvEaH+iWDzH6qfDq6yub3LB+q9luiBnACxKfL98AJoP5jx8on0k P5XktVclqvD8MgiFFvWeibjgpqBSBJ0nJEk/HYdAbJaRmUGpi1D9SwUuh9iRc1ZIOoBf auUQ== 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=q4v5eQ6uNtmwpFMgRe8EaIBJb4MZtfu8baTOThAbc48=; b=V5U8/3/bss4e5Wghcl0PDyuo5VccFvMIAroIzHe2qfpeODDpS61hjyLDO+Byccwnmx ZVZypWRXzTY32IswqLRKsApJep2HW12tsTIPM8v8lglavgIL6XU6o/3q9dK4T2pcJwrc QgVxDWY/VNw1KI50DQjlgn98rZIPZCw7O0gG7MERE66psfRvmseeR8TmO609QjlgYygT Li5c20EFN2fu8ci0Su4w5KKGkbA3R6IL/ZgFQ2duO8UwKhXcEnT2TbxDyknvlO83tpHg CVAH+E+yE2PCGKwCq6ij1vzTpLG8Mx/CVABVzaII/zcsY2C1Ff5MD+A+5uZK6U3WF44A OMgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mZkZh2ih; 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 g16-20020a1709064e5000b00948bc0d2d80si1851927ejw.1006.2023.04.06.13.32.22; Thu, 06 Apr 2023 13:32:47 -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=mZkZh2ih; 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 S239550AbjDFUbr (ORCPT + 99 others); Thu, 6 Apr 2023 16:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239450AbjDFUbe (ORCPT ); Thu, 6 Apr 2023 16:31:34 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19FBFAD1D for ; Thu, 6 Apr 2023 13:31:28 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id by26so4205624ejb.2 for ; Thu, 06 Apr 2023 13:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813088; 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=q4v5eQ6uNtmwpFMgRe8EaIBJb4MZtfu8baTOThAbc48=; b=mZkZh2ihElAmXpc+gvjW4iyD3G81bS1xcX04W3p0yGmEl952kZ2/BbZgOSgXRno2bu LbMW/sOWeNFx7qYlS/RztN3Yy1WPTkHmt+hy8oQk1S3Baf38fEh//h6KtNqfzb2auHaf 2i6k50L8ETVq26xxcqZcWiy5dD+bCuG96xUCuMF2mbOmTareYO0GEtyq7RP0G9auMukK Mt4nPxyBGmLPCXYSVf0Ioa/IkDR/NGu3KeRuYr9Inc51Z+2zSfr/q4Btkp8buGWHEJYP aDtJcUQ5X6zyKD70mz49SiphGZhB6Fa6OYtNUhxYEHpjbeEsEj+X2oUdxGYXHSsiCZ8x 1dpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813088; 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=q4v5eQ6uNtmwpFMgRe8EaIBJb4MZtfu8baTOThAbc48=; b=NwfPI+klr/ySet9VFE2pywA+YewjEGadAgDEYHqCHVxbC1jGGnO6qjamVLd0OYFgYT IeWhjEPp9GjPvZuPaGZnfNCb0Zg53nc8NU6RfOHTAzJKplSuGTyA67PeAqQWKXHpYNn+ qUVSkB7gJzREbTidwHosyxBTh1TMRwBtYOU4N1UzQQ+sdgEMP73VgD+7BXecWA97PFY4 nU1AAUG23s+u2fhC3y2SHaMGA73+fU2X6dGPpJLpXm8ghO26weDfEeEklt6jZeEfTBOF e290ECGmICMZ7YadEzXqsNE43CzedXlYh9QleeH5AwqVBwj+aAJF3UtUeW2TsCNPokW8 KqdA== X-Gm-Message-State: AAQBX9exjqaxtWQITbDIQiNBAk3L4u5vTY34aooxHkpdNY5sTOyxxC8Z ybdQvvzIEg30Ealgdu8oO4Ro1w== X-Received: by 2002:a17:906:2414:b0:931:42d2:a77f with SMTP id z20-20020a170906241400b0093142d2a77fmr221247eja.15.1680813088528; Thu, 06 Apr 2023 13:31:28 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:28 -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 06/68] hwmon: adt7x10: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:30:01 +0200 Message-Id: <20230406203103.3011503-7-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/adt7x10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/adt7x10.c b/drivers/hwmon/adt7x10.c index da67734edafd..6701920de17f 100644 --- a/drivers/hwmon/adt7x10.c +++ b/drivers/hwmon/adt7x10.c @@ -309,7 +309,7 @@ static int adt7x10_write(struct device *dev, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *adt7x10_info[] = { +static const struct hwmon_channel_info * const adt7x10_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_MIN | HWMON_T_CRIT | HWMON_T_MAX_HYST | HWMON_T_MIN_HYST | HWMON_T_CRIT_HYST | HWMON_T_MIN_ALARM | -- 2.34.1