[PATCH 2/2] driver: set DEVICE_ID_DYNAMIC to -2 and DEVICE_ID_SINGLE to -1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux