From mboxrd@z Thu Jan 1 00:00:00 1970 From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni) Date: Tue, 26 Mar 2013 15:34:55 +0100 Subject: [PATCH 01/11] staging: drm/imx: Add LDB support In-Reply-To: <1364307246-9017-2-git-send-email-p.zabel@pengutronix.de> References: <1364307246-9017-1-git-send-email-p.zabel@pengutronix.de> <1364307246-9017-2-git-send-email-p.zabel@pengutronix.de> Message-ID: <20130326153455.5a093e15@skate> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Dear Philipp Zabel, On Tue, 26 Mar 2013 15:13:56 +0100, Philipp Zabel wrote: > +/* > + * For a device declaring compatible = "fsl,imx6q-ldb", "fsl,imx53-ldb", > + * of_match_device will walk through this list and take the first entry > + * matching any of its compatible values. Therefore, the more generic > + * entries (in this case fsl,imx53-ldb) need to be ordered last. > + */ > +static const struct of_device_id imx_ldb_dt_ids[] = { > + { .compatible = "fsl,imx6q-ldb", .data = imx6q_lvds_mux, }, > + { .compatible = "fsl,imx53-ldb", .data = NULL, }, > + { } > +}; You probably want a new DT binding documentation in Documentation/devicetree/bindings/. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Subject: Re: [PATCH 01/11] staging: drm/imx: Add LDB support Date: Tue, 26 Mar 2013 15:34:55 +0100 Message-ID: <20130326153455.5a093e15@skate> References: <1364307246-9017-1-git-send-email-p.zabel@pengutronix.de> <1364307246-9017-2-git-send-email-p.zabel@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1364307246-9017-2-git-send-email-p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Philipp Zabel Cc: devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b@public.gmane.org, Fabio Estevam , Sascha Hauer , Greg Kroah-Hartman , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, Sean Cross , Martin Fuzzey , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org Dear Philipp Zabel, On Tue, 26 Mar 2013 15:13:56 +0100, Philipp Zabel wrote: > +/* > + * For a device declaring compatible = "fsl,imx6q-ldb", "fsl,imx53-ldb", > + * of_match_device will walk through this list and take the first entry > + * matching any of its compatible values. Therefore, the more generic > + * entries (in this case fsl,imx53-ldb) need to be ordered last. > + */ > +static const struct of_device_id imx_ldb_dt_ids[] = { > + { .compatible = "fsl,imx6q-ldb", .data = imx6q_lvds_mux, }, > + { .compatible = "fsl,imx53-ldb", .data = NULL, }, > + { } > +}; You probably want a new DT binding documentation in Documentation/devicetree/bindings/. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com