]> git.dujemihanovic.xyz Git - u-boot.git/commit
i8042: Adjust keyboard init to assume success
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 03:17:21 +0000 (21:17 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:13:40 +0000 (20:13 -0700)
commitc5d257f93f1a20a14ee0e9a236e6160b9d2925aa
treeb9f5180b9ef6a16a3779cc324bccb6d6ebc46908
parent4f087bace2dab1ceb42077a044c918e22691a172
i8042: Adjust keyboard init to assume success

Modify i8042_kbd_init() so that the normal pass is sucessful init and
failure exits early. This will make the code easier to extend and is easier
to read.

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