USB: serial: ark3116: clean up return values of register accessors
authorGimcuan Hui <gimcuan@gmail.com>
Mon, 27 Nov 2017 15:36:51 +0000 (15:36 +0000)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Nov 2017 08:42:50 +0000 (09:42 +0100)
commitd8a42b1ff8a3755cc710785c7e4b5e59636399ca
treee563f6fbcaf1dcbb0c35c891042b2b5ed99e8b5d
parent5f0337b549e97fda07ccf48b9eebcee983c255bf
USB: serial: ark3116: clean up return values of register accessors

write_reg returns 0 on success, we can make it more explicit by returning
number 0 instead of result variable.

read_reg should return 0 on success since this is a more common pattern.

The user of read_reg has been clean-up and should be at the same commit.

Signed-off-by: Gimcuan Hui <gimcuan@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ark3116.c