Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d8a42b1f authored by Gimcuan Hui's avatar Gimcuan Hui Committed by Johan Hovold
Browse files

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: default avatarGimcuan Hui <gimcuan@gmail.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 5f0337b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment