input: Return -ENOSPC when there is not space
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 03:17:12 +0000 (21:17 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:13:40 +0000 (20:13 -0700)
commit92778b2784e15a1ac88d4cf64a12eee8163b221c
treef340eddec66cbada4f5c23532bb8e1e1a25b5906
parentc9cac4cdce3a2909d878105621abafa38c1ff79d
input: Return -ENOSPC when there is not space

Return a useful error instead of -1 when something goes wrong.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/input/input.c