Re: [U-Boot] [PATCH 10/28] i8042: Use functions to handle register access

2015-09-14 Thread Bin Meng
On Wed, Sep 9, 2015 at 12:32 PM, Simon Glass wrote: > 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 > ---

[U-Boot] [PATCH 10/28] i8042: Use functions to handle register access

2015-09-08 Thread Simon Glass
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 --- drivers/input/i8042.c | 75 ++---