diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-03-28 09:02:44 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-29 15:41:15 (GMT) |
commit | 6a48f88b528fef7c4b6ad609111a8acfb5d65335 (patch) | |
tree | 58f4551121772dc7fcea13e96428ff4837bcce4d /drivers/staging/speakup/speakup.h | |
parent | 1627ab92b2e6307525f43f775aaeac54407981ef (diff) | |
download | linux-fsl-qoriq-6a48f88b528fef7c4b6ad609111a8acfb5d65335.tar.xz |
staging: speakup: use native error codes
The mapping as follows:
E_RANGE -> ERANGE
E_UNDEF -> ENODATA
E_TOOLONG -> E2BIG
SET_DEFAULT -> ERESTART
As a side effect it fixes a bug in spk_var_store() where return code was
mistakenly compared to negative value instead of positive.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/speakup.h')
-rw-r--r-- | drivers/staging/speakup/speakup.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/speakup/speakup.h b/drivers/staging/speakup/speakup.h index 1e5691c..c387a02 100644 --- a/drivers/staging/speakup/speakup.h +++ b/drivers/staging/speakup/speakup.h @@ -44,11 +44,6 @@ #define IS_CHAR(x, type) (spk_chartab[((u_char)x)]&type) #define IS_TYPE(x, type) ((spk_chartab[((u_char)x)]&type) == type) -#define SET_DEFAULT -4 -#define E_RANGE -3 -#define E_TOOLONG -2 -#define E_UNDEF -1 - extern int speakup_thread(void *data); extern void spk_reset_default_chars(void); extern void spk_reset_default_chartab(void); |