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 B7910C61DA4 for ; Mon, 13 Mar 2023 17:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbjCMRKl (ORCPT ); Mon, 13 Mar 2023 13:10:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230282AbjCMRKa (ORCPT ); Mon, 13 Mar 2023 13:10:30 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F02F113EF; Mon, 13 Mar 2023 10:10:06 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id y14so13355821ljq.4; Mon, 13 Mar 2023 10:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678727325; x=1681319325; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=nWFcn3N7fdkggfCAU6N3AWS2AJpujTNFZCDcDG29DDU=; b=e6YN891exTz6RBgawDES0963ZDWFQA9+8aQ63Im7BP5Fy9eEvzBxMIuHAuqWbCZeLw xA2sSa6/cZiN6mHF3/+fIb3pnqq2MewlfLzR48koCbD8whXbKfA8Zs0+dFs89Cfy5m36 ROVsAU6bQljGOx/ykPtOQO0r6I8XBemOEF326xWZ5gIBuu5RpWt0wZITremU5bdqxJ5e fWUkITbc/MzS3k5YZE74vlNgxyJd3l+n9CkKH1MRvz0jG8OdZSEUnRN+n0e89kMgUyKp rroBKHNdNE45XtTz8XbWd27Z63Nu8HES9mhzKxEJUTEcdgqTB5zYtiSB6fEQbd4byozN 7IwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678727325; x=1681319325; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nWFcn3N7fdkggfCAU6N3AWS2AJpujTNFZCDcDG29DDU=; b=XXWHmcEm2KrJNFXSTm6cPqfYsLRZFOXOOq7WT+o+XOQq69H6tF4BrW/8ugAWiVQzsp lDui5P4w0GqgqcY3cS+Qds/DRLsdrnlgyXtTcy1UrYEBNFzTV1G/PnqANiyKDCMdaIff TAYoYCBsiPjVtLzGjqdojGRpoH+PQOp4jUx+yUJO0RewiYOyHmwnblq1p/WsRL4cJlWM 3fOfpQB89E9WTYoKQK3ZREHHIuNuZ1vmffOVb3pDQyE7+LttB7rYsDhRA5hyuEtaonmq 33w6rQcL5hObLtJ4XfQHYmGkTAfTnqZ2OJJZ7g/p9kglKYaIFJP7Tpvd3wT/iXrqLTmv hfuQ== X-Gm-Message-State: AO0yUKXnQtU++xk+NblEVv1vMbk3P05lIEFmFwq8jhZBfCVDrjS40Tbj weymA5Ebe9sJwb11vGZZvjw= X-Google-Smtp-Source: AK7set9A23LXz84FY4nbulp8BmwRuZb6BzjELqJTA00c9/JbdQSh2qRKdHRdbHkxYlALuU7kCLrMgg== X-Received: by 2002:a05:651c:222b:b0:294:7422:479e with SMTP id y43-20020a05651c222b00b002947422479emr6188608ljq.1.1678727324631; Mon, 13 Mar 2023 10:08:44 -0700 (PDT) Received: from [192.168.0.192] ([194.146.248.75]) by smtp.gmail.com with ESMTPSA id e2-20020a2e9302000000b0029571d505a1sm69136ljh.80.2023.03.13.10.08.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Mar 2023 10:08:44 -0700 (PDT) Message-ID: <66b78cd3-0d0d-cee8-6a93-996ade3a07a9@gmail.com> Date: Mon, 13 Mar 2023 18:08:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 09/28] media: platform: samsung: s5p-jpeg: drop of_match_ptr for ID table Content-Language: en-US To: Krzysztof Kozlowski , Joe Tessler , Hans Verkuil , Mauro Carvalho Chehab , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Thierry Reding , Jonathan Hunter , Manivannan Sadhasivam , Michael Tretter , Pengutronix Kernel Team , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Rui Miguel Silva , Wenyou Yang , Bin Liu , Matthias Brugger , AngeloGioacchino Del Regno , Minghsiu Tsai , Houlong Wei , Andrew-CT Chen , Jacek Anaszewski , Sylwester Nawrocki , Patrice Chotard , Yong Deng , Paul Kocialkowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , "Lad, Prabhakar" , Ezequiel Garcia , Philipp Zabel , Sean Young , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-rockchip@lists.infradead.org References: <20230312131318.351173-1-krzysztof.kozlowski@linaro.org> <20230312131318.351173-9-krzysztof.kozlowski@linaro.org> From: Andrzej Pietrasiewicz In-Reply-To: <20230312131318.351173-9-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, W dniu 12.03.2023 o 14:12, Krzysztof Kozlowski pisze: > The driver can match only via the DT table so the table should be always > used and the of_match_ptr does not have any sense (this also allows ACPI > matching via PRP0001, even though it might not be relevant here). This > also fixes !CONFIG_OF error: > > drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c:3124:34: error: ‘samsung_jpeg_match’ defined but not used [-Werror=unused-const-variable=] > > Signed-off-by: Krzysztof Kozlowski Acked-by: Andrzej Pietrasiewicz > --- > drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c b/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c > index 55814041b8d8..8be8e3596e07 100644 > --- a/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c > +++ b/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c > @@ -3166,7 +3166,7 @@ static struct platform_driver s5p_jpeg_driver = { > .probe = s5p_jpeg_probe, > .remove = s5p_jpeg_remove, > .driver = { > - .of_match_table = of_match_ptr(samsung_jpeg_match), > + .of_match_table = samsung_jpeg_match, > .name = S5P_JPEG_M2M_NAME, > .pm = &s5p_jpeg_pm_ops, > },