OSDN Git Service

staging: comedi: s526: tidy up s526_ai_rinsn()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Aug 2015 23:58:23 +0000 (16:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:22 +0000 (18:24 -0700)
commitbf483f1e07d0b292ae5d5fdf94d901fa4415ab38
tree53e20e5f1b2c0084b83d283e0eba53ea09fc6c4e
parent09c5d6c83ec3bd56ee1ebef8bec42956b32ca7eb
staging: comedi: s526: tidy up s526_ai_rinsn()

Rename this function to follow the normal naming in comedi drivers.

Use the comedi_offset_munge() helper to munge the hardware two's
complement data to the comedi offset binary format.

Change the final return to insn->n to clarify the return value without
the need for the comment.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s526.c