Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp968240rwl; Fri, 7 Apr 2023 08:03:40 -0700 (PDT) X-Google-Smtp-Source: AKy350YjQF3NXh1g1JN/zGENix3r0c6ldKnMSt/lqtEAh0sehX9JJCq245ZkVGrKRcuKbMrNV17L X-Received: by 2002:a17:906:b083:b0:878:54e3:e3e1 with SMTP id x3-20020a170906b08300b0087854e3e3e1mr2168412ejy.73.1680879820484; Fri, 07 Apr 2023 08:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680879820; cv=none; d=google.com; s=arc-20160816; b=MM00wfYUKvESIs+c+cXdOwiVsyuHHlhXetdQJ+zy+mQenit8VQSH4m6H97oQdQCHP6 VNhh3fdnyT+zWjvRyQqDPEe710KEeKyC2jxd9pdogERErj2/m3Fkbt+/tXh6TyrMQ4cM p5Dqme8cN+us2CyDU2AHt43o1TyMlXVSNpkFu1cvX1HgI6hLKAVdm+L20ggh04p0aK2W G3muHQbSwf113NKj0zFxXL3zC+QbrO2JXsy9XLmFvTebRYKMaQQScD2Bwcm0J1OH0SGP BnFebh+aJ/u0Kd2SDx3zG0FQtSu334HO6ATtT0qxcnRlClaX89qlWAlROc78OvSlpsec 4KXg== 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 :message-id:date:subject:cc:to:from; bh=dBKQ4PCIXTkJh4zmsEru7ch2oOGMQ5VCWRb6XnfzbgU=; b=s4HMo0pz7R2Mvv1qjF9fyduO80eY22Rc9x3izm6F4PB3j60pc9seTp30jGHcJ6i8Tv psXiDQXNYQBjTh4gSq4/WyvLHWr5sAganCxboqatwBoqzeWFbwOb5q9mERfZ1PzIxFtI vFIf0ucsBBTpHO9vu2GJ+cvYAqjh7Lq3pwL73/zGyyy6iLZ7TkK0zsHRQzhyHyd9/vii 7eRtQKrvkPIhunGOlA20FPjY7WFyUlP1m8xqfAePZJnEUGgvNXXaqNqVfF5XPcu8LI2f JSmnZv4Go00tziwzeA4eH2Ys+efOsxq6A1mdPUQEMEVZcw04R/HnvT48Zlf+X6bFbNza 6aow== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 x5-20020a1709064a8500b0092419a141fbsi2428599eju.726.2023.04.07.08.03.06; Fri, 07 Apr 2023 08:03:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232599AbjDGPBk (ORCPT + 99 others); Fri, 7 Apr 2023 11:01:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239421AbjDGPBO (ORCPT ); Fri, 7 Apr 2023 11:01:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFA7FB764; Fri, 7 Apr 2023 08:00:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B580B64F27; Fri, 7 Apr 2023 15:00:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33E28C433EF; Fri, 7 Apr 2023 15:00:18 +0000 (UTC) From: Krzysztof Kozlowski To: Matt Ranostay , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH] media: i2c: video: constify pointers to hwmon_channel_info Date: Fri, 7 Apr 2023 17:00:15 +0200 Message-Id: <20230407150015.79715-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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 --- This depends on hwmon core patch: https://lore.kernel.org/all/20230406203103.3011503-2-krzysztof.kozlowski@linaro.org/ Therefore I propose this should also go via hwmon tree. Cc: Jean Delvare Cc: Guenter Roeck Cc: linux-hwmon@vger.kernel.org --- drivers/media/i2c/video-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c index dddf9827b314..abd472dcd497 100644 --- a/drivers/media/i2c/video-i2c.c +++ b/drivers/media/i2c/video-i2c.c @@ -274,7 +274,7 @@ static const struct hwmon_channel_info amg88xx_temp = { .config = amg88xx_temp_config, }; -static const struct hwmon_channel_info *amg88xx_info[] = { +static const struct hwmon_channel_info * const amg88xx_info[] = { &amg88xx_temp, NULL }; -- 2.34.1