9
0
Fork 0

driver: set DEVICE_ID_DYNAMIC to -2 and DEVICE_ID_SINGLE to -1

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

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-08-11 16:19:20 +02:00 committed by Sascha Hauer
parent a231dcdf78
commit ad327344c9
1 changed files with 2 additions and 2 deletions

View File

@ -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.
*/