diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 06:15:11 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:57 -0400 |
commit | 926c5402c287f6d911f7d00f936f09ea00880527 (patch) | |
tree | 82885b3dd11e486a47a1b84fe36ef214269f0f96 /include | |
parent | 69ba44331e81e4a15b504175ec70b7b4b4e5a8b9 (diff) |
pcmcia: deprecate CS_BAD_ARGS
CS_BAD_ARGS mean a badly written driver or invalid userspace ioctl access,
so translate that to -EINVAL.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/pcmcia/cs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index 4951eb94493a..56f94e297500 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
@@ -294,7 +294,7 @@ typedef struct error_info_t { | |||
294 | #define CS_BAD_BASE -EINVAL | 294 | #define CS_BAD_BASE -EINVAL |
295 | #define CS_BAD_EDC -ENODEV | 295 | #define CS_BAD_EDC -ENODEV |
296 | #define CS_BAD_IRQ -EINVAL | 296 | #define CS_BAD_IRQ -EINVAL |
297 | #define CS_BAD_OFFSET -EIO | 297 | #define CS_BAD_OFFSET -EINVAL |
298 | #define CS_BAD_PAGE -EINVAL | 298 | #define CS_BAD_PAGE -EINVAL |
299 | #define CS_READ_FAILURE -EIO | 299 | #define CS_READ_FAILURE -EIO |
300 | #define CS_BAD_SIZE -EINVAL | 300 | #define CS_BAD_SIZE -EINVAL |
@@ -312,7 +312,7 @@ typedef struct error_info_t { | |||
312 | #define CS_GENERAL_FAILURE -ETIMEDOUT | 312 | #define CS_GENERAL_FAILURE -ETIMEDOUT |
313 | #define CS_WRITE_PROTECTED -EPERM | 313 | #define CS_WRITE_PROTECTED -EPERM |
314 | #define CS_BAD_ARG_LENGTH -ENODEV | 314 | #define CS_BAD_ARG_LENGTH -ENODEV |
315 | #define CS_BAD_ARGS 0x1c | 315 | #define CS_BAD_ARGS -EINVAL |
316 | #define CS_CONFIGURATION_LOCKED -EACCES | 316 | #define CS_CONFIGURATION_LOCKED -EACCES |
317 | #define CS_IN_USE -EBUSY | 317 | #define CS_IN_USE -EBUSY |
318 | #define CS_NO_MORE_ITEMS -ENOSPC | 318 | #define CS_NO_MORE_ITEMS -ENOSPC |