aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-03 04:36:50 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-22 20:29:39 -0400
commit5ff87db6792844ae24cc784512a95e0c94521b19 (patch)
tree1a9cb26c8dc813aaa67068f126010bcf40d7025a
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>
-rw-r--r--drivers/pcmcia/ds.c10
-rw-r--r--include/pcmcia/cs.h20
2 files changed, 10 insertions, 20 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index 20bef0c12c14..7142fd647e7b 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -75,29 +75,19 @@ typedef struct lookup_t {
75 75
76static const lookup_t error_table[] = { 76static const lookup_t error_table[] = {
77 { CS_SUCCESS, "Operation succeeded" }, 77 { CS_SUCCESS, "Operation succeeded" },
78 { CS_BAD_ADAPTER, "Bad adapter" },
79 { CS_BAD_ATTRIBUTE, "Bad attribute", }, 78 { CS_BAD_ATTRIBUTE, "Bad attribute", },
80 { CS_BAD_BASE, "Bad base address" }, 79 { CS_BAD_BASE, "Bad base address" },
81 { CS_BAD_EDC, "Bad EDC" },
82 { CS_BAD_IRQ, "Bad IRQ" }, 80 { CS_BAD_IRQ, "Bad IRQ" },
83 { CS_BAD_OFFSET, "Bad offset" }, 81 { CS_BAD_OFFSET, "Bad offset" },
84 { CS_BAD_PAGE, "Bad page number" }, 82 { CS_BAD_PAGE, "Bad page number" },
85 { CS_READ_FAILURE, "Read failure" },
86 { CS_BAD_SIZE, "Bad size" }, 83 { CS_BAD_SIZE, "Bad size" },
87 { CS_BAD_SOCKET, "Bad socket" },
88 { CS_BAD_TYPE, "Bad type" }, 84 { CS_BAD_TYPE, "Bad type" },
89 { CS_BAD_VCC, "Bad Vcc" }, 85 { CS_BAD_VCC, "Bad Vcc" },
90 { CS_BAD_VPP, "Bad Vpp" }, 86 { CS_BAD_VPP, "Bad Vpp" },
91 { CS_BAD_WINDOW, "Bad window" },
92 { CS_WRITE_FAILURE, "Write failure" },
93 { CS_NO_CARD, "No card present" }, 87 { CS_NO_CARD, "No card present" },
94 { CS_UNSUPPORTED_FUNCTION, "Usupported function" }, 88 { CS_UNSUPPORTED_FUNCTION, "Usupported function" },
95 { CS_UNSUPPORTED_MODE, "Unsupported mode" }, 89 { CS_UNSUPPORTED_MODE, "Unsupported mode" },
96 { CS_BAD_SPEED, "Bad speed" },
97 { CS_BUSY, "Resource busy" },
98 { CS_GENERAL_FAILURE, "General failure" }, 90 { CS_GENERAL_FAILURE, "General failure" },
99 { CS_WRITE_PROTECTED, "Write protected" },
100 { CS_BAD_ARG_LENGTH, "Bad argument length" },
101 { CS_BAD_ARGS, "Bad arguments" }, 91 { CS_BAD_ARGS, "Bad arguments" },
102 { CS_CONFIGURATION_LOCKED, "Configuration locked" }, 92 { CS_CONFIGURATION_LOCKED, "Configuration locked" },
103 { CS_IN_USE, "Resource in use" }, 93 { CS_IN_USE, "Resource in use" },
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