]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: vmk80xx: move boardinfo into a const array
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 6 Feb 2013 00:18:52 +0000 (17:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2013 02:07:09 +0000 (18:07 -0800)
commit20d6007755cb665d75ba34d6b9075b4cc02e816a
treeb9b4c28a73d6980a02a31a3e3cc8c4efe022d53d
parentce87422743608b436da9e0ce34d01519cd75ea3e
staging: comedi: vmk80xx: move boardinfo into a const array

The normal way of presenting the board specific information in comedi
drivers is store the data in a static const array. This data is then
accessed using a pointer, normally the comedi_device 'board_ptr',

Move the boardinfo for the two boards supported by this driver from
the vmk80xx_usb_probe() function into a static const array.

Change the access of this information so a pointer is used.

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