OSDN Git Service

staging: comedi: das1800: cleanup das1800_probe()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 18 Jun 2015 17:54:49 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Jun 2015 04:19:02 +0000 (21:19 -0700)
commit06ad6bd8698c1202423ead5a9e85564134382065
treeb13165e7f54071457e70598b59fd902238f8daff
parent4f3aa186d325f469c142ce8c804548e2b2f18a9d
staging: comedi: das1800: cleanup das1800_probe()

Make this function return a pointer to the boardinfo instead of an index.
Since it's not typical, add a comment to clarify why this legacy driver
does a probe.

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/das1800.c