staging: comedi: export comedi_set_hw_dev()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 1 Feb 2013 13:23:19 +0000 (13:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 01:44:19 +0000 (17:44 -0800)
commitda71751177f35f0ca5494968cc237511c423a744
tree139fcfc6582834a879ce0a5c4845c16201c1b459
parentf65cc5447eaea9f7be1ff54e27c9658a66c5910f
staging: comedi: export comedi_set_hw_dev()

Chnage the inline `comedi_set_hw_dev()` to an exported function and
change it's return type from `void` to `int` so we can impose some
restrictions (in a later patch) and return an error if necessary.

Only a few comedi drivers call this, although they don't need to if the
hardware device has been attached automatically via
`comedi_auto_config()` and the comedi driver's `auto_attach()` method.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h
drivers/staging/comedi/drivers.c