diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 05:58:53 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:55 -0400 |
commit | 610e23749e87920136e1a221266a43cb7e3823f1 (patch) | |
tree | 5696af5b6e7be04e17a852e6c810798930a9b6c4 /include/pcmcia | |
parent | 635d19bea0e91df473a81391ec8f3db2d049a218 (diff) |
pcmcia: deprecate CS_BAD_ATTRIBUTE, CS_BAD_TYPE and CS_BAD_PAGE
CS_BAD_TYPE was only used in cs.c and already properly annotated by error
messages. CS_BAD_ATTRIBUTE and CS_BAD_PAGE mean a badly written driver, so
ds_dbg() output and -EINVAL seems to be enough.
(includes bugfix from and
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
)
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia')
-rw-r--r-- | include/pcmcia/cs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index 20440defd1d0..70c32e97b492 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
@@ -290,16 +290,16 @@ typedef struct error_info_t { | |||
290 | /* Return codes */ | 290 | /* Return codes */ |
291 | #define CS_SUCCESS 0x00 | 291 | #define CS_SUCCESS 0x00 |
292 | #define CS_BAD_ADAPTER -ENODEV | 292 | #define CS_BAD_ADAPTER -ENODEV |
293 | #define CS_BAD_ATTRIBUTE 0x02 | 293 | #define CS_BAD_ATTRIBUTE -EINVAL |
294 | #define CS_BAD_BASE 0x03 | 294 | #define CS_BAD_BASE 0x03 |
295 | #define CS_BAD_EDC -ENODEV | 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 -EINVAL |
299 | #define CS_READ_FAILURE -EIO | 299 | #define CS_READ_FAILURE -EIO |
300 | #define CS_BAD_SIZE 0x0a | 300 | #define CS_BAD_SIZE 0x0a |
301 | #define CS_BAD_SOCKET -EINVAL | 301 | #define CS_BAD_SOCKET -EINVAL |
302 | #define CS_BAD_TYPE 0x0d | 302 | #define CS_BAD_TYPE -EINVAL |
303 | #define CS_BAD_VCC -EINVAL | 303 | #define CS_BAD_VCC -EINVAL |
304 | #define CS_BAD_VPP -EINVAL | 304 | #define CS_BAD_VPP -EINVAL |
305 | #define CS_BAD_WINDOW -ENODEV | 305 | #define CS_BAD_WINDOW -ENODEV |