]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_stc.h: the boardinfo 'name' should be first
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 26 Jun 2014 17:13:08 +0000 (10:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jun 2014 21:17:59 +0000 (14:17 -0700)
commit356014046a80cfef088cedbc06fcc003f34e8c77
tree00b64e75af8f42c8663ec2a40cfb83c553a8b5e9
parente141fef9389eb1d50aa6f8a59e9432c916155368
staging: comedi: ni_stc.h: the boardinfo 'name' should be first

By convention, the first member of the boardinfo is a 'const char *' to
the board name, especially for those comedi drivers that rely on the
comedi core to set dev->board_ptr to the entry matching the board name
when doing a legacy (*attach) to a comedi driver.

Modify the ni_board_struct appropriately for consistency, although the
board name is only used for informational purposes by this driver (only
the driver name is matched by the comedi core).

For aesthetics, also move the members in the boardinfo declarations.

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
drivers/staging/comedi/drivers/ni_mio_cs.c
drivers/staging/comedi/drivers/ni_stc.h