From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv3 3/5] omap3: remove typedefs for configuration structs
Date: Sun, 24 May 2009 18:12:48 +0200 [thread overview]
Message-ID: <4A197200.8070102@googlemail.com> (raw)
In-Reply-To: <20090524154903.GL26561@game.jcrosoft.org>
Dear Jean-Christophe,
Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 09:09 Tue 19 May , Matthias Ludwig wrote:
>> Signed-off-by: Matthias Ludwig <mludwig@ultratronik.de>
>> ---
>> board/omap3/beagle/beagle.c | 6 ++--
>> board/omap3/evm/evm.c | 6 ++--
>> board/omap3/pandora/pandora.c | 8 +++---
>> board/omap3/zoom2/zoom2.c | 2 +-
>> cpu/arm_cortexa8/omap3/board.c | 16 ++++++------
>> cpu/arm_cortexa8/omap3/clock.c | 14 +++++-----
>> cpu/arm_cortexa8/omap3/mem.c | 14 +++++-----
>> cpu/arm_cortexa8/omap3/sys_info.c | 12 ++++----
>> cpu/arm_cortexa8/omap3/timer.c | 2 +-
>> drivers/mtd/nand/omap_gpmc.c | 2 +-
>> include/asm-arm/arch-omap3/cpu.h | 50 ++++++++++++++++++------------------
>> include/asm-arm/arch-omap3/mem.h | 4 +-
>> include/asm-arm/arch-omap3/omap3.h | 8 +++---
>> include/configs/omap3_beagle.h | 2 +-
>> include/configs/omap3_evm.h | 2 +-
>> include/configs/omap3_overo.h | 2 +-
>> include/configs/omap3_pandora.h | 2 +-
>> include/configs/omap3_zoom1.h | 2 +-
>> include/configs/omap3_zoom2.h | 2 +-
>> 19 files changed, 78 insertions(+), 78 deletions(-)
>>
>> diff --git a/board/omap3/beagle/beagle.c b/board/omap3/beagle/beagle.c
>> index 7eb70ee..2dc11dd 100644
>> --- a/board/omap3/beagle/beagle.c
>> +++ b/board/omap3/beagle/beagle.c
>> @@ -74,7 +74,7 @@ int beagle_get_revision(void)
>> */
>> void beagle_identify(void)
>> {
>> - gpio_t *gpio6_base = (gpio_t *)OMAP34XX_GPIO6_BASE;
>> + struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE;
> please use a namespace name gpio is too much generic
> and it's the same for the other struct sms, pm etc...
> omap_ will be better as the omap4 will certanly use the same or near IP
But OMAP4 most probably will not use a file board/omap3/beagle/beagle.c.
And using "omap_" would be wrong if your argument is OMAP4. Then it
needs at least to be "omap3_".
And I can't see how a local variable could pollute the namespace, if
this is what you mean.
And if I remember correctly, you are against global variables (at
least you mentioned it in some reviews), so a global variable called
"gpio6_base" would be the issue, not the naming of this local variable.
I.e. we are in omap3 directory and have a local variable, so it's fine
to use no omap_ here and do it as it is in Matthias' patch.
Best regards
Dirk
next prev parent reply other threads:[~2009-05-24 16:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-19 7:09 [U-Boot] [PATCHv3 0/5] clean up omap3 configuration structs Matthias Ludwig
2009-05-19 7:09 ` [U-Boot] [PATCHv3 1/5] OMAP3EVM: net_chip uses CS5 not CS6 Matthias Ludwig
2009-05-19 7:09 ` [U-Boot] [PATCHv3 2/5] omap3: embedd gpmc_cs into gpmc config struct Matthias Ludwig
2009-05-19 7:09 ` [U-Boot] [PATCHv3 3/5] omap3: remove typedefs for configuration structs Matthias Ludwig
2009-05-19 7:09 ` [U-Boot] [PATCHv3 4/5] omap3: replace all instances of gpmc config struct by one global Matthias Ludwig
2009-05-19 7:09 ` [U-Boot] [PATCHv3 5/5] omap3: use only fixed-size types inside ctrl_structs Matthias Ludwig
2009-05-24 15:49 ` [U-Boot] [PATCHv3 3/5] omap3: remove typedefs for configuration structs Jean-Christophe PLAGNIOL-VILLARD
2009-05-24 16:12 ` Dirk Behme [this message]
2009-05-24 16:12 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-24 16:30 ` Dirk Behme
2009-05-24 19:58 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-24 20:22 ` Wolfgang Denk
2009-08-07 21:39 ` Wolfgang Denk
2009-08-07 21:32 ` [U-Boot] [PATCHv3 2/5] omap3: embedd gpmc_cs into gpmc config struct Wolfgang Denk
2009-05-24 15:42 ` [U-Boot] [PATCHv3 1/5] OMAP3EVM: net_chip uses CS5 not CS6 Jean-Christophe PLAGNIOL-VILLARD
2009-06-02 10:31 ` [U-Boot] [PATCH] OMAP3EVM: fix typo. replace CS6 by CS5, no functionality change Matthias Ludwig
2009-06-04 20:25 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-08 11:48 ` Matthias Ludwig
2009-05-20 20:21 ` [U-Boot] [PATCHv3 0/5] clean up omap3 configuration structs Dirk Behme
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=4A197200.8070102@googlemail.com \
--to=dirk.behme@googlemail.com \
--cc=u-boot@lists.denx.de \
/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