From patchwork Sat May 13 17:57:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 93568 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5908432vqo; Sat, 13 May 2023 11:10:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42w7ZjVOWS9pHFNTKj+I9z0qy30W4GcMXbNMGP8GFxW39z975VcjdiiMqdkbYvNmjWXCx7 X-Received: by 2002:a05:6a00:1507:b0:647:3de:c0ff with SMTP id q7-20020a056a00150700b0064703dec0ffmr25576939pfu.30.1684001456403; Sat, 13 May 2023 11:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684001456; cv=none; d=google.com; s=arc-20160816; b=BF7TbluOJKBdSb1Ikg+81x7VA7w4/NS/E+5A0RlxW6DyN8S6e3OEo03KR70buZex1R +dOoitxtL5wV1iGu+R9LmiCy9qLFZI9/vbamTu+4xHPI0PsFs0WO0cuEZTI0uWUgP70y 3MhR9DSmmCSABVbPAhG6IkPM7uLCATytGLasz93XDgOIX0FKklzAq9hqG+6SDZCkchEX C1Wg/Qdg5xOMfLSJcqO+Pb7Pwbj2yEUMR4v0H5as1yzZbbxt3UZMpnwEulsMHe9eK8g3 uE1f7HP3tQRNTAGxFOw1L7aPqpGZfAkCJK4FZDEyAeSWuBPr3h8xEvkUTcRPkEND5EsI V29g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=0TYHC8DevqzUuMCaYSsG4x7Dy7ACQ72mwbn/ozrjkng=; b=jEQlArzY31L5y/gwrKKoLXfLIl0b8Hmocghhu9lu4/jm9b59VtTLkNzCicWfwXWJfp glQgERenqOurwsY4d4SglF7yddN68P3Kkraji+JwqjtECZkFcplLKqCpHJsXTynHEf5K 78yf5KqBazDvyl1OS8/itfqhGQjAbhrxr8tiNzeXbqRk+SpFd4Fvsmi0IPSWxATuhiBx As6WLVxzvpr16x5E5ubhgPuzIF/d6kbah0D591+4WeTrjYbLPoOccecKM3tlep2IyKDr R+QMIIPa3n42mE9/Pp3lw6PeFVpyvWCFrCrEGgAlnhP6Pgc0EhJ+5zVLedU9DS6GFIWo FEnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=ngsmn7oF; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a184-20020a624dc1000000b0063b8a37e42bsi12748228pfb.123.2023.05.13.11.10.44; Sat, 13 May 2023 11:10:56 -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=fail header.i=@kernel.org header.s=k20201202 header.b=ngsmn7oF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237312AbjEMR6b (ORCPT + 99 others); Sat, 13 May 2023 13:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233149AbjEMR5u (ORCPT ); Sat, 13 May 2023 13:57:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 010881727; Sat, 13 May 2023 10:57:48 -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 65CEA61C2A; Sat, 13 May 2023 17:57:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3974AC433A4; Sat, 13 May 2023 17:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684000666; bh=IIMCf/miL10vsMshEbVANxAXddzcrgVpTcdSmeKpZHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ngsmn7oFxiA3OG+Ap7idnFCNjmCf2BtXuXoo7iQz8Q30O0NdMfZRy0sY1Uv2BYdvf qdj/ChUFigOaadsEd0LMtgso555UePJo7eCO29k1TdPXdVSspkYB2/eQ5WprJkBCI/ klR8GQRuc8cE4lNTnwTjhfLiIJK+0NK9QztTAUIDTLxPHZHIft0CSljLSiVQ8SxoxM cVl2wkQi2HLPwFjPoLT3XHDCJGW27HRMaa+vYzbnUPObULw1S9M/+LQ6yRDEYpWtqI zbo5ky17SSmpUEs4FRQQ/P2A7qpTa+cawQi6ESE7PovgllgvgxW/whbHjGSS9NOQ+b i+bSlWvOizCJw== Received: from mchehab by mail.kernel.org with local (Exim 4.96) (envelope-from ) id 1pxtV1-001ty2-1X; Sat, 13 May 2023 18:57:43 +0100 From: Mauro Carvalho Chehab Cc: Krzysztof Kozlowski , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 13/24] media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table Date: Sat, 13 May 2023 18:57:30 +0100 Message-Id: <9af01d8b5a1dacb369dc966e6c52fe968337098c.1684000646.git.mchehab@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <53558de2b5c4f4ee6bfcfbe34e27071c2d0073d5.1684000646.git.mchehab@kernel.org> References: <53558de2b5c4f4ee6bfcfbe34e27071c2d0073d5.1684000646.git.mchehab@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765803511204049381?= X-GMAIL-MSGID: =?utf-8?q?1765803511204049381?= From: Krzysztof Kozlowski The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). This also fixes !CONFIG_OF error: drivers/media/dvb-frontends/mn88443x.c:782:34: error: ‘mn88443x_of_match’ defined but not used [-Werror=unused-const-variable=] Link: https://lore.kernel.org/linux-media/20230312131318.351173-28-krzysztof.kozlowski@linaro.org Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-frontends/mn88443x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/mn88443x.c b/drivers/media/dvb-frontends/mn88443x.c index 1f1753f2ab1a..0782f8377eb2 100644 --- a/drivers/media/dvb-frontends/mn88443x.c +++ b/drivers/media/dvb-frontends/mn88443x.c @@ -798,7 +798,7 @@ MODULE_DEVICE_TABLE(i2c, mn88443x_i2c_id); static struct i2c_driver mn88443x_driver = { .driver = { .name = "mn88443x", - .of_match_table = of_match_ptr(mn88443x_of_match), + .of_match_table = mn88443x_of_match, }, .probe_new = mn88443x_probe, .remove = mn88443x_remove,