]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_atmio: cleanup ni_getboardtype()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 18 Jun 2015 17:54:58 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Jun 2015 04:19:04 +0000 (21:19 -0700)
commitbe80d5f8a9f2950c130037ceca232ecff144f5ec
tree319083dfd2b59beac821afd7a9447c5bc2e0fa53
parent6aed015688a2635ea6644a5b64f262ce58908976
staging: comedi: ni_atmio: cleanup ni_getboardtype()

Make this function return a pointer to the boardinfo instead of an index.

For aesthetics, rename the function to ni_atmio_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/ni_atmio.c