pcmcia: deprecate CS_BAD_HANDLE

CS_BAD_HANDLE means that something went badly wrong: no parameter was passed,
or the paramater passed wasn't the correct one. Therefore, replace it with
-EINVAL.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
Dominik Brodowski
2008-08-03 11:18:00 +02:00
parent 8567142e87
commit ffb8da2027
4 changed files with 11 additions and 12 deletions

View File

@@ -317,7 +317,7 @@ typedef struct error_info_t {
#define CS_IN_USE 0x1e
#define CS_NO_MORE_ITEMS 0x1f
#define CS_OUT_OF_RESOURCE -ENOMEM
#define CS_BAD_HANDLE 0x21
#define CS_BAD_HANDLE -EINVAL
#define CS_BAD_TUPLE 0x40