staging: comedi: dt9812: pass the comedi_device * to dt9812_configure_gain()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 21:25:42 +0000 (14:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:25:57 +0000 (16:25 -0700)
commitbe8f16de76cdc6440c420b90f3fab768ac50a7a5
tree749945210af7fdb84a4deebbf901dc212d81f432
parentc13626a2467b153f0f499c30d85722725c129881
staging: comedi: dt9812: pass the comedi_device * to dt9812_configure_gain()

For aesthetic reasons, instead of passing the struct usb_dt9812 pointer,
pass the comedi_device pointer to this function.

Tidy up the function and use the comedi_device class_dev for the
dev_err() message.

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