Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934923AbdCVPCk (ORCPT ); Wed, 22 Mar 2017 11:02:40 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:50435 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760612AbdCVPBI (ORCPT ); Wed, 22 Mar 2017 11:01:08 -0400 Message-ID: <1490194844.2285.41.camel@pengutronix.de> Subject: Re: [PATCH v3 2/5] drm: of: introduce drm_of_find_panel_or_bridge From: Philipp Zabel To: Rob Herring Cc: David Airlie , Daniel Vetter , Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Boris Brezillon , Archit Taneja , Jingoo Han , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , Stefan Agner , Alison Wang , Xinliang Liu , Rongrong Zou , Xinwei Kong , Chen Feng , CK Hu , Matthias Brugger , Marek Vasut , Mark Yao , Heiko Stuebner , Maxime Ripard , Chen-Yu Tsai , Liviu Dudau , Mali DP Maintainers , Neil Armstrong , Carlo Caione , Kevin Hilman , Rob Clark , Jyri Sarha , Tomi Valkeinen , Eric Anholt , Russell King Date: Wed, 22 Mar 2017 16:00:44 +0100 In-Reply-To: <20170322132608.17353-3-robh@kernel.org> References: <20170322132608.17353-1-robh@kernel.org> <20170322132608.17353-3-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 636 Lines: 16 On Wed, 2017-03-22 at 08:26 -0500, Rob Herring wrote: > Many drivers have a common pattern of searching the OF graph for either an > attached panel or bridge and then finding the DRM struct for the panel > or bridge. Also, most drivers need to handle deferred probing when the > DRM device is not yet instantiated. Create a common function, > drm_of_find_panel_or_bridge, to find the connected node and the > associated DRM panel or bridge device. > > Signed-off-by: Rob Herring > Acked-by: Philipp Zabel Tested-by: Philipp Zabel (imx-ldb on i.MX6) regards Philipp