From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Wed, 11 Dec 2013 23:19:56 +0000 Subject: Re: [PATCH 10/26] OMAPDSS: add of helpers Message-Id: <4533892.HJaRcDt4Q8@avalon> List-Id: References: <1386160133-24026-1-git-send-email-tomi.valkeinen@ti.com> <1386160133-24026-11-git-send-email-tomi.valkeinen@ti.com> In-Reply-To: <1386160133-24026-11-git-send-email-tomi.valkeinen@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Tomi Valkeinen Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, Archit Taneja , Darren Etheridge , Tony Lindgren Hi Tomi, On Wednesday 04 December 2013 14:28:37 Tomi Valkeinen wrote: > Add helpers to get ports and endpoints from DT data. > > While all the functions in dss-of.c might be useful for panel drivers if > they need to parse full port/endpoint data, at the moment we only need a > few of them outside dss-of.c, so only those functions are exported. I totally understand that it was easier to add this code to the OMAP DSS driver, but I believe we should refactor the existing drivers/media/v4l2- core/v4l2-of.c and move it to a non V4L2-specific location (what about drivers/media ?) sooner rather than later. That's on my to-do list for Saturday. > Signed-off-by: Tomi Valkeinen > --- > drivers/video/omap2/dss/Makefile | 2 +- > drivers/video/omap2/dss/dss-of.c | 160 ++++++++++++++++++++++++++++++++++++ > include/video/omapdss.h | 6 ++ > 3 files changed, 167 insertions(+), 1 deletion(-) > create mode 100644 drivers/video/omap2/dss/dss-of.c > > diff --git a/drivers/video/omap2/dss/Makefile > b/drivers/video/omap2/dss/Makefile index d3aa91bdd6a8..8aec8bda27cc 100644 > --- a/drivers/video/omap2/dss/Makefile > +++ b/drivers/video/omap2/dss/Makefile > @@ -1,7 +1,7 @@ > obj-$(CONFIG_OMAP2_DSS) += omapdss.o > # Core DSS files > omapdss-y := core.o dss.o dss_features.o dispc.o dispc_coefs.o display.o \ > - output.o > + output.o dss-of.o > # DSS compat layer files > omapdss-y += manager.o manager-sysfs.o overlay.o overlay-sysfs.o apply.o \ > dispc-compat.o display-sysfs.o > diff --git a/drivers/video/omap2/dss/dss-of.c > b/drivers/video/omap2/dss/dss-of.c new file mode 100644 > index 000000000000..9aa61d4bdb3d > --- /dev/null > +++ b/drivers/video/omap2/dss/dss-of.c > @@ -0,0 +1,160 @@ > +/* > + * Copyright (C) 2013 Texas Instruments > + * Author: Tomi Valkeinen > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the terms of the GNU General Public License version 2 as published > by + * the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, but > WITHOUT + * ANY WARRANTY; without even the implied warranty of > MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU > General Public License for + * more details. > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +#include