public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: andrzej zaborowski <balrogg@gmail.com>
Cc: iqbal@ti.com, linux-omap@vger.kernel.org
Subject: Re: [RESEND][PATCH]Separate out 3430 LCD panel support from 2430 file
Date: Tue, 8 Jul 2008 10:48:15 +0300	[thread overview]
Message-ID: <20080708074814.GB17594@atomide.com> (raw)
In-Reply-To: <fb249edb0807040932k4f2977a4w380b50e7f3cce197@mail.gmail.com>

* andrzej zaborowski <balrogg@gmail.com> [080704 19:34]:
> 2008/7/2  <iqbal@ti.com>:
> > From: Iqbal Shareef <iqbal@ti.com>
> >
> > Separate out 3430 LCD panel support from 2430 SDP.
> >
> > Currently the support for the LCD on 3430SDP is added in the lcd_2430sdp.c
> > file. This patch separates it out to a new file.
> 
> Isn't this a bit step backwards?  Code reuse is generally a good thing
> if it doesn't clutter the code too much, and if you do diff -pNaur
> lcd_2430sdp.c lcd_3430sdp.c in the current tree you will see that they
> are very similar.

Good point. I'll revert this patch, that should fix the compile issue
too.

Tony

> Additionally this patch leaves some of the 3430SDP code in
> lcd_2430sdp.c, you will still find this:
> #define SDP3430_LCD_PANEL_BACKLIGHT_GPIO 	24
> #define SDP3430_LCD_PANEL_ENABLE_GPIO 		28
> ...
> 	if (machine_is_omap_3430sdp()) {
> 		enable_gpio    = SDP3430_LCD_PANEL_ENABLE_GPIO;
> 		backlight_gpio = SDP3430_LCD_PANEL_BACKLIGHT_GPIO;
> 	} else {
> 		enable_gpio    = SDP2430_LCD_PANEL_ENABLE_GPIO;
> 		backlight_gpio = SDP2430_LCD_PANEL_BACKLIGHT_GPIO;
> 	}
> ...
> 	if (machine_is_omap_3430sdp()) {
> 		ded_reg = TWL4030_VAUX3_DEDICATED;
> 		ded_val = ENABLE_VAUX3_DEDICATED;
> 		grp_reg = TWL4030_VAUX3_DEV_GRP;
> 		grp_val = ENABLE_VAUX3_DEV_GRP;
> 	} else {
> 		ded_reg = TWL4030_VAUX2_DEDICATED;
> 		ded_val = ENABLE_VAUX2_DEDICATED;
> 		grp_reg = TWL4030_VAUX2_DEV_GRP;
> 		grp_val = ENABLE_VAUX2_DEV_GRP;
> 	}
> 
> Another thing that isn't explained is why the GPIO numbers for
> backlight and enable changed from 24 and 28 to 8 and 5.
> 
> Regards,
> Andrew
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2008-07-08  7:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-02 12:24 [RESEND][PATCH]Separate out 3430 LCD panel support from 2430 file iqbal
2008-07-03 10:32 ` Tony Lindgren
2008-07-04  5:20   ` Gadiyar, Anand
2008-07-04 12:13     ` Kamat, Nishant
2008-07-04 16:32 ` andrzej zaborowski
2008-07-08  7:48   ` Tony Lindgren [this message]

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=20080708074814.GB17594@atomide.com \
    --to=tony@atomide.com \
    --cc=balrogg@gmail.com \
    --cc=iqbal@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /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