From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] gpio command: return value on write, additional actions
Date: Fri, 15 Jul 2011 09:39:48 +0200 [thread overview]
Message-ID: <m2wrfkrnzv.fsf@ohwell.denx.de> (raw)
In-Reply-To: <201107141607.39691.vapier@gentoo.org> (Mike Frysinger's message of "Thu, 14 Jul 2011 16:07:38 -0400")
Hi Mike,
> On Wednesday, July 06, 2011 06:36:00 Wolfgang Denk wrote:
>> For consistency I would prefer to have all commands return the same
>> type of information, i. e. either an error status (like we do with all
>> other commands - any result values would then have to be passed as
>> environment settings)
>
> going through the env seems a little wonky. i dont know of any other commands
> that do this, so i dont think there's any standard to work off of here ...
I believe Wolfgang means for example this:
,----[ common/cmd_setexpr.c ]
| U_BOOT_CMD(
| setexpr, 5, 0, do_setexpr,
| "set environment variable as the result of eval expression",
| "[.b, .w, .l] name value1 <op> value2\n"
| " - set environment variable 'name' to the result of the evaluated\n"
| " express specified by <op>. <op> can be &, |, ^, +, -, *, /, %\n"
| " size argument is only meaningful if value1 and/or value2 are memory addresses"
| );
`----
Cheers
Detlev
--
Als ich entf?hrt wurde, begannen meine Eltern aktiv zu werden.
Sie vermieteten mein Zimmer.
-- Woody Allen
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2011-07-15 7:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 16:59 [U-Boot] [RFC] gpio command: return value on write, additional actions Andreas Pretzsch
2011-07-05 17:44 ` Mike Frysinger
2011-07-05 19:15 ` Andreas Pretzsch
2011-07-05 19:33 ` Mike Frysinger
2011-07-06 8:33 ` Detlev Zundel
2011-07-06 10:36 ` Wolfgang Denk
2011-07-07 10:15 ` Detlev Zundel
2011-07-20 18:22 ` Andreas Pretzsch
2011-07-14 20:07 ` Mike Frysinger
2011-07-15 7:39 ` Detlev Zundel [this message]
2011-07-18 18:08 ` Mike Frysinger
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=m2wrfkrnzv.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--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