From: Ben Warren <bwarren@qstreams.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH][RFC] disable flat i2c commands when CONFIG_I2C_CMD_TREE defined
Date: Fri, 02 Mar 2007 12:41:02 -0500 [thread overview]
Message-ID: <1172857262.13546.115.camel@saruman.qstreams.net> (raw)
In-Reply-To: <200703021759.18812.matthias.fuchs@esd-electronics.com>
Matthias,
On Fri, 2007-03-02 at 17:59 +0100, Matthias Fuchs wrote:
> Hi,
>
> I noticed that when using CONFIG_I2C_CMD_TREE to enable
> the 'i2c' command with its sub commands, I also get the flat
> i2c commands (imm, iprobe, ...) compiled into u-boot.
>
> I think this is more than I need and want.
>
> Does anything speak against disabling the flat i2c commands
> when CONFIG_I2C_CMD_TREE is defined?
>
> This is how I've done it (please skip the SPD stuff).
>
> Matthias
Looks good. I can't think of a use case where both command formats
would be useful, but maybe others can.
Please flip the order so it's
#if defined(CONFIG_I2C_CMD_TREE)
U_BOOT_CMD(
i2c, 6, 1, do_i2c,
...
#else
U_BOOT_CMD(
imd, 4, 1, do_i2c_md, \
...
#endif
and submit as a proper patch.
regards,
Ben
prev parent reply other threads:[~2007-03-02 17:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-02 16:59 [U-Boot-Users] [PATCH][RFC] disable flat i2c commands when CONFIG_I2C_CMD_TREE defined Matthias Fuchs
2007-03-02 17:41 ` Ben Warren [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=1172857262.13546.115.camel@saruman.qstreams.net \
--to=bwarren@qstreams.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.