Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Steve Sakoman <steve@sakoman.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 2/2] OMAP: DSS2: Add DSS2 support for Overo
Date: Fri, 4 Mar 2011 10:00:48 +0200	[thread overview]
Message-ID: <1299225648.2196.25.camel@deskari> (raw)
In-Reply-To: <1299195980-17057-3-git-send-email-steve@sakoman.com>

On Thu, 2011-03-03 at 17:46 -0600, Steve Sakoman wrote:
> This patch adds DSS2 support for DVI, S-video, the 480x272 Samsung
> LTE430WQ-F0C panel, and the 320x240 LG.Philips LB035Q02 panel.
> 
> Signed-off-by: Steve Sakoman <steve@sakoman.com>
> ---
>  arch/arm/mach-omap2/board-overo.c |  239 +++++++++++++++++++++++++++++++------
>  1 files changed, 202 insertions(+), 37 deletions(-)

<snip>

> +#if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \
> +	defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE)
> +static struct omap_dss_device overo_lcd35_device = {
> +	.type			= OMAP_DISPLAY_TYPE_DPI,
> +	.name			= "lcd35",
> +	.driver_name		= "lgphilips_lb035q02_panel",
> +	.phy.dpi.data_lines	= 24,
> +	.platform_enable	= overo_panel_enable_lcd,
> +	.platform_disable	= overo_panel_disable_lcd,
> +};
> +#endif
> +
> +static struct omap_dss_device *overo_dss_devices[] = {
> +	&overo_dvi_device,
> +	&overo_tv_device,
> +#if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \
> +	defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE)
> +	&overo_lcd35_device,
> +#endif
> +	&overo_lcd43_device,

Why check for CONFIG_PANEL_LGPHILIPS_LB035Q02, but not for the lcd43?

And is that even necessary? Of course it would make the kernel very
slightly smaller if you leave some code out, but otherwise does that
help? If you have the device definitions there, but the user doesn't
load the driver, they wouldn't do anything, would they?

For me the ifdefs just make the code harder to read, but I'm not sure if
there's some standard custom to have these.

 Tomi



  reply	other threads:[~2011-03-04  8:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 23:46 [PATCH 0/2] Add DSS2 support on Overo Steve Sakoman
2011-03-03 23:46 ` [PATCH 1/2] OMAP: DSS2: Add support for LG Philips LB035Q02 panel Steve Sakoman
2011-03-04  7:55   ` Tomi Valkeinen
2011-03-04 15:29     ` Steve Sakoman
2011-03-04 15:41       ` Tomi Valkeinen
2011-03-04 17:08         ` Steve Sakoman
2011-03-03 23:46 ` [PATCH 2/2] OMAP: DSS2: Add DSS2 support for Overo Steve Sakoman
2011-03-04  8:00   ` Tomi Valkeinen [this message]
2011-03-04 15:25     ` Steve Sakoman
2011-03-04 15:30       ` Tomi Valkeinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1299225648.2196.25.camel@deskari \
    --to=tomi.valkeinen@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=steve@sakoman.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox