staging: comedi: dt9812: pass the comedi_device * to dt9812_digital_out()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 21:23:35 +0000 (14:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:25:55 +0000 (16:25 -0700)
commit51af6fa15e83f88fdd7de235db353f6a8b35513f
treeca120323e2b562dfb528b23f46a4cc8cbae02993
parent4bc839f25044f75d7b59d5481c404ce20563ef86
staging: comedi: dt9812: pass the comedi_device * to dt9812_digital_out()

For aesthetic reasons, instead of passing the 'slot' pointer, pass the
comedi_device pointer to this function and rename the local var 'result'
to simply 'ret'.

Also, initialize the 'reg', and 'value' when they are declared.

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