From patchwork Tue Sep 27 17:30:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 86343 X-Patchwork-Delegate: sakari.ailus@iki.fi Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1odEPF-00Flhl-74; Tue, 27 Sep 2022 17:30:05 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbiI0RaD (ORCPT + 1 other); Tue, 27 Sep 2022 13:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232402AbiI0RaB (ORCPT ); Tue, 27 Sep 2022 13:30:01 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4775E6CD3A; Tue, 27 Sep 2022 10:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664299799; x=1695835799; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=LtIRyR8kxAEXhrL4ex1wZ7Rxv9QJ+zQ05SYLHG0tBEc=; b=K2Q6yvM9yn6361umwrvxKcfJVhJouDwUgx5VrZuSs1+eGo78dIKrLHje NX3nKe7xhAocBa0Ldnm76SqGSYyfSQQwo36LuCmBTLexFe3XDbR+DaY4i g6WUSZa3mSSdGGG2EC3me/QWN6R+bmajHCN1VIfY9Z2PtCTIqPcX7uLr0 fo9OHFMN8Ek4U0/Qnt0woNmy+2ljJzZ4e9Kn/KrmNnZV983lhQH/TEZxI 3IUW0cazsKNwdIX0tbXujQZyXqre99fVXlHw6p6zPSKdjfuEDgnWklc3J szYyhQPbfac/FKwcIEykVgHFpMO4vLL8iHNOeR4MjDy4xLBD9jNPBuxF6 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="284507594" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="284507594" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 10:29:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="599257238" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="599257238" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 27 Sep 2022 10:29:55 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 149337C; Tue, 27 Sep 2022 20:30:13 +0300 (EEST) From: Andy Shevchenko To: Sakari Ailus , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andy Shevchenko Subject: [PATCH v1 1/1] staging: media: tegra-video: Replace custom implementation of device_match_fwnode() Date: Tue, 27 Sep 2022 20:30:11 +0300 Message-Id: <20220927173011.72571-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham 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-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,DKIMWL_WL_HIGH=0.001,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no Replace custom implementation of the device_match_fwnode(). Signed-off-by: Andy Shevchenko --- drivers/staging/media/tegra-video/vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/tegra-video/vi.c b/drivers/staging/media/tegra-video/vi.c index 9d46a36cc014..11dd142c98c5 100644 --- a/drivers/staging/media/tegra-video/vi.c +++ b/drivers/staging/media/tegra-video/vi.c @@ -1811,7 +1811,7 @@ static int tegra_vi_graph_parse_one(struct tegra_vi_channel *chan, } /* skip entities that are already processed */ - if (remote == dev_fwnode(vi->dev) || + if (device_match_fwnode(vi->dev, remote) || tegra_vi_graph_find_entity(chan, remote)) { fwnode_handle_put(remote); continue;