]> git.dujemihanovic.xyz Git - u-boot.git/commit
i8042: Use functions to handle register access
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 03:17:19 +0000 (21:17 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:13:40 +0000 (20:13 -0700)
commit31d38ee66dfad4284866267ff0651fa0614dad3c
tree52e324ca52b1f401bdbf99f6a029684f7415ef44
parent7fe0933c5898e5cce70407184fd458cf3ad9ee32
i8042: Use functions to handle register access

At present the register access in kbd_reset() is quite primitive. This makes
it hard to follow.

Create functions to read and write data, both to a single register, and via
the command/data approach.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-on: Intel Crown Bay and QEMU
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/input/i8042.c