projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9cac4c
)
input: Return -ENOSPC when there is not space
author
Simon Glass
<
[email protected]
>
Mon, 19 Oct 2015 03:17:12 +0000
(21:17 -0600)
committer
Simon Glass
<
[email protected]
>
Fri, 20 Nov 2015 03:13:40 +0000
(20:13 -0700)
Return a useful error instead of -1 when something goes wrong.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
drivers/input/input.c
patch
|
blob
|
history
diff --git
a/drivers/input/input.c
b/drivers/input/input.c
index 007b85524aafa9703e4053ef86406adccd2137c6..90339357736d762697c9ddc27d4969216f0b2c9d 100644
(file)
--- a/
drivers/input/input.c
+++ b/
drivers/input/input.c
@@
-8,6
+8,7
@@
*/
#include <common.h>
+#include <errno.h>
#include <stdio_dev.h>
#include <input.h>
#include <linux/input.h>
@@
-467,7
+468,7
@@
int input_init(struct input_config *config, int leds)
input_add_table(config, KEY_LEFTCTRL, KEY_RIGHTCTRL,
kbd_ctrl_xlate, ARRAY_SIZE(kbd_ctrl_xlate))) {
debug("%s: Could not add modifier tables\n", __func__);
- return -
1
;
+ return -
ENOSPC
;
}
return 0;