mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] driver: set DEVICE_ID_DYNAMIC to -2 and DEVICE_ID_SINGLE to -1
Date: Sat, 11 Aug 2012 16:19:20 +0200	[thread overview]
Message-ID: <1344694760-17468-2-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <1344694760-17468-1-git-send-email-plagnioj@jcrosoft.com>

so we can have the same behaviour as in the kernel for id = -1

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 include/driver.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/driver.h b/include/driver.h
index 0a8dc8e..0fecc7a 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -127,9 +127,9 @@ struct driver_d {
 #define RW_SIZE_MASK    0x7
 
 /* dynamically assign the next free id */
-#define DEVICE_ID_DYNAMIC	-1
+#define DEVICE_ID_DYNAMIC	-2
 /* do not use an id (only one device available */
-#define DEVICE_ID_SINGLE	-2
+#define DEVICE_ID_SINGLE	-1
 
 /* Register devices and drivers.
  */
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-08-11 14:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11 14:19 [PATCH 1/2] devices: fix missing converition to DEVICE_ID_DYNAMIC Jean-Christophe PLAGNIOL-VILLARD
2012-08-11 14:19 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-08-12 20:24 ` Sascha Hauer

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=1344694760-17468-2-git-send-email-plagnioj@jcrosoft.com \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.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