diff options
author | Ji-Ze Hong (Peter Hong) <hpeter@gmail.com> | 2016-10-04 10:27:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-27 16:28:16 +0200 |
commit | f1232ac229cc078206a72ca365c3526e37ea1ae5 (patch) | |
tree | 31fc3e71e9870e17698f41c696c65f1860e574bf /net | |
parent | serial: 8250: pxa: add devicetree earlyconsole (diff) | |
download | linux-f1232ac229cc078206a72ca365c3526e37ea1ae5.tar.xz linux-f1232ac229cc078206a72ca365c3526e37ea1ae5.zip |
serial: 8250_fintek: Refactoring read/write method
If we need to access SuperIO registers, It should write register offset
to base_addr and read/write value to base_addr + 1 to perform read/write.
We can make it more simply with write/read functions.
This patch add sio_read_reg()/sio_write_reg()/sio_write_mask_reg() to
reduce SuperIO register operation with lot of outb()/inb().
Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions