From patchwork Thu May 11 17:54:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 682243 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF8BCC77B7F for ; Thu, 11 May 2023 17:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238790AbjEKRzZ (ORCPT ); Thu, 11 May 2023 13:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238920AbjEKRzX (ORCPT ); Thu, 11 May 2023 13:55:23 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7580F9EC5 for ; Thu, 11 May 2023 10:54:46 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-966287b0f72so1194199066b.0 for ; Thu, 11 May 2023 10:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827683; x=1686419683; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7RoJ+WGkxh0ZHVALKBMRWYolMs636xMb4Qisk/gwfjs=; b=ohekcepe//LFr5zpuoHNeKD0oiWjGL6PPy+KvkT48GgRyJpCA915dx5U0lHy/4dHwO My7I7b3iOESC5OqLgG2M6u9s+gqIFcOnWZDC6+loysJBsjmuuSQYYnFaM72rv2meH5cY FCynMxoT0lhz6PY26g0TjGcybTWn2ZPK+8MFzNRXyE1eigo94PkjTPaEMgLJyLWRycry h2KV+SjKP3IWnqYxTsfkF2czExFaeFH/ehVVJJly+O+wTJFrdrr4eBF9UiMzoJVYBmHj 8P2ZW1YKw+I8JO6E4T2BoomZ0RmrRTwS+qPgm9dMXmO7z7+ANehQaM+NjzBmp4eMDj0Q 530Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827683; x=1686419683; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7RoJ+WGkxh0ZHVALKBMRWYolMs636xMb4Qisk/gwfjs=; b=hhdohUHM1RcYOeZSpPPbv/ytUsr8QgbNo3Cgdgh7uPCKg1eWPuvzbKeQcBKAJtQCSG lKW7qwKjkdS1FOgGWXMRt2kX7+2/wRdPksm3ZrRthEr/hHwgsRZElo5QG9sqF9zNcXhj 1KcCqfAj3nRH8LUggEDMO0nI4M6V7vejZdnBFcJpHE2jHLNUzX9ryxkh3o1hZV6CEYvq ITGukdrEt4P4qdPRxO2+tMO26gpv0eoSC38QOZlY4+ib9QFlYtnXaLnmme2MtbQ+FcZI s3UOIjFRGq8LeFnN/SK/0lEcAhZB3uDKJ1JPCdGLZ7BneQ4ArLIpU8FAYenXXjFOjOwD yXtg== X-Gm-Message-State: AC+VfDw9Bmf+D+Ehph4MgccP2rOh1qY0w5KviCHjBcO/f6K1dju5VtbZ hiFF8cPv9waKRzArTcO15g+vqw== X-Google-Smtp-Source: ACHHUZ4G1UFJ2ox7eH2dZNDJA2jlm8ardAVzt337eSwI5HyBnu4z6t743/TnUsK6yVetee6JY4bI1A== X-Received: by 2002:a17:907:7b9b:b0:957:db05:a35d with SMTP id ne27-20020a1709077b9b00b00957db05a35dmr23846516ejc.48.1683827683546; Thu, 11 May 2023 10:54:43 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d7cd:1be6:f89d:7218]) by smtp.gmail.com with ESMTPSA id ty20-20020a170907c71400b0096621340285sm4290928ejc.198.2023.05.11.10.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:54:42 -0700 (PDT) From: Krzysztof Kozlowski To: Matt Ranostay , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Sakari Ailus Subject: [RESEND PATCH] media: i2c: video: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:54:41 +0200 Message-Id: <20230511175441.281940-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Statically allocated array of pointers to hwmon_channel_info can be made const for safety. Reviewed-by: Matt Ranostay Acked-by: Sakari Ailus Signed-off-by: Krzysztof Kozlowski --- 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 };