mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> ) Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
635d19bea0
commit
610e23749e
5 changed files with 37 additions and 30 deletions
|
|
@ -290,16 +290,16 @@ typedef struct error_info_t {
|
|||
/* Return codes */
|
||||
#define CS_SUCCESS 0x00
|
||||
#define CS_BAD_ADAPTER -ENODEV
|
||||
#define CS_BAD_ATTRIBUTE 0x02
|
||||
#define CS_BAD_ATTRIBUTE -EINVAL
|
||||
#define CS_BAD_BASE 0x03
|
||||
#define CS_BAD_EDC -ENODEV
|
||||
#define CS_BAD_IRQ 0x06
|
||||
#define CS_BAD_OFFSET 0x07
|
||||
#define CS_BAD_PAGE 0x08
|
||||
#define CS_BAD_PAGE -EINVAL
|
||||
#define CS_READ_FAILURE -EIO
|
||||
#define CS_BAD_SIZE 0x0a
|
||||
#define CS_BAD_SOCKET -EINVAL
|
||||
#define CS_BAD_TYPE 0x0d
|
||||
#define CS_BAD_TYPE -EINVAL
|
||||
#define CS_BAD_VCC -EINVAL
|
||||
#define CS_BAD_VPP -EINVAL
|
||||
#define CS_BAD_WINDOW -ENODEV
|
||||
|
|
|
|||
Loading…
Reference in a new issue