diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 04:36:50 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:39 -0400 |
commit | 5ff87db6792844ae24cc784512a95e0c94521b19 (patch) | |
tree | 1a9cb26c8dc813aaa67068f126010bcf40d7025a /include/pcmcia/cs.h | |
parent | 4c89e88bfde6a3c179790e21004f24e09a058290 (diff) |
pcmcia: deprecate unused CS_ error codes
Deprecate unused CS_ error codes by replacing their definitions with
generic error messages, and removing them from the error_t lookup table.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia/cs.h')
-rw-r--r-- | include/pcmcia/cs.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index 201705c51bbd..695baf6cf1fd 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
@@ -289,29 +289,29 @@ typedef struct error_info_t { | |||
289 | 289 | ||
290 | /* Return codes */ | 290 | /* Return codes */ |
291 | #define CS_SUCCESS 0x00 | 291 | #define CS_SUCCESS 0x00 |
292 | #define CS_BAD_ADAPTER 0x01 | 292 | #define CS_BAD_ADAPTER -ENODEV |
293 | #define CS_BAD_ATTRIBUTE 0x02 | 293 | #define CS_BAD_ATTRIBUTE 0x02 |
294 | #define CS_BAD_BASE 0x03 | 294 | #define CS_BAD_BASE 0x03 |
295 | #define CS_BAD_EDC 0x04 | 295 | #define CS_BAD_EDC -ENODEV |
296 | #define CS_BAD_IRQ 0x06 | 296 | #define CS_BAD_IRQ 0x06 |
297 | #define CS_BAD_OFFSET 0x07 | 297 | #define CS_BAD_OFFSET 0x07 |
298 | #define CS_BAD_PAGE 0x08 | 298 | #define CS_BAD_PAGE 0x08 |
299 | #define CS_READ_FAILURE 0x09 | 299 | #define CS_READ_FAILURE -EIO |
300 | #define CS_BAD_SIZE 0x0a | 300 | #define CS_BAD_SIZE 0x0a |
301 | #define CS_BAD_SOCKET 0x0b | 301 | #define CS_BAD_SOCKET -EINVAL |
302 | #define CS_BAD_TYPE 0x0d | 302 | #define CS_BAD_TYPE 0x0d |
303 | #define CS_BAD_VCC 0x0e | 303 | #define CS_BAD_VCC 0x0e |
304 | #define CS_BAD_VPP 0x0f | 304 | #define CS_BAD_VPP 0x0f |
305 | #define CS_BAD_WINDOW 0x11 | 305 | #define CS_BAD_WINDOW -ENODEV |
306 | #define CS_WRITE_FAILURE 0x12 | 306 | #define CS_WRITE_FAILURE -EIO |
307 | #define CS_NO_CARD 0x14 | 307 | #define CS_NO_CARD 0x14 |
308 | #define CS_UNSUPPORTED_FUNCTION 0x15 | 308 | #define CS_UNSUPPORTED_FUNCTION 0x15 |
309 | #define CS_UNSUPPORTED_MODE 0x16 | 309 | #define CS_UNSUPPORTED_MODE 0x16 |
310 | #define CS_BAD_SPEED 0x17 | 310 | #define CS_BAD_SPEED -ENODEV |
311 | #define CS_BUSY 0x18 | 311 | #define CS_BUSY -ENODEV |
312 | #define CS_GENERAL_FAILURE 0x19 | 312 | #define CS_GENERAL_FAILURE 0x19 |
313 | #define CS_WRITE_PROTECTED 0x1a | 313 | #define CS_WRITE_PROTECTED -EPERM |
314 | #define CS_BAD_ARG_LENGTH 0x1b | 314 | #define CS_BAD_ARG_LENGTH -ENODEV |
315 | #define CS_BAD_ARGS 0x1c | 315 | #define CS_BAD_ARGS 0x1c |
316 | #define CS_CONFIGURATION_LOCKED 0x1d | 316 | #define CS_CONFIGURATION_LOCKED 0x1d |
317 | #define CS_IN_USE 0x1e | 317 | #define CS_IN_USE 0x1e |