summaryrefslogtreecommitdiff
path: root/include/pcmcia
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-03 10:36:50 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-23 02:29:39 +0200
commit5ff87db6792844ae24cc784512a95e0c94521b19 (patch)
tree1a9cb26c8dc813aaa67068f126010bcf40d7025a /include/pcmcia
parent4c89e88bfde6a3c179790e21004f24e09a058290 (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')
-rw-r--r--include/pcmcia/cs.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h
index 201705c51bb..695baf6cf1f 100644
--- a/include/pcmcia/cs.h
+++ b/include/pcmcia/cs.h
@@ -289,29 +289,29 @@ typedef struct error_info_t {
/* Return codes */
#define CS_SUCCESS 0x00
-#define CS_BAD_ADAPTER 0x01
+#define CS_BAD_ADAPTER -ENODEV
#define CS_BAD_ATTRIBUTE 0x02
#define CS_BAD_BASE 0x03
-#define CS_BAD_EDC 0x04
+#define CS_BAD_EDC -ENODEV
#define CS_BAD_IRQ 0x06
#define CS_BAD_OFFSET 0x07
#define CS_BAD_PAGE 0x08
-#define CS_READ_FAILURE 0x09
+#define CS_READ_FAILURE -EIO
#define CS_BAD_SIZE 0x0a
-#define CS_BAD_SOCKET 0x0b
+#define CS_BAD_SOCKET -EINVAL
#define CS_BAD_TYPE 0x0d
#define CS_BAD_VCC 0x0e
#define CS_BAD_VPP 0x0f
-#define CS_BAD_WINDOW 0x11
-#define CS_WRITE_FAILURE 0x12
+#define CS_BAD_WINDOW -ENODEV
+#define CS_WRITE_FAILURE -EIO
#define CS_NO_CARD 0x14
#define CS_UNSUPPORTED_FUNCTION 0x15
#define CS_UNSUPPORTED_MODE 0x16
-#define CS_BAD_SPEED 0x17
-#define CS_BUSY 0x18
+#define CS_BAD_SPEED -ENODEV
+#define CS_BUSY -ENODEV
#define CS_GENERAL_FAILURE 0x19
-#define CS_WRITE_PROTECTED 0x1a
-#define CS_BAD_ARG_LENGTH 0x1b
+#define CS_WRITE_PROTECTED -EPERM
+#define CS_BAD_ARG_LENGTH -ENODEV
#define CS_BAD_ARGS 0x1c
#define CS_CONFIGURATION_LOCKED 0x1d
#define CS_IN_USE 0x1e