OSDN Git Service

staging: comedi: ni_atmio: make device_ids const
authorIan Abbott <abbotti@mev.co.uk>
Wed, 8 Mar 2017 18:02:05 +0000 (18:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 13:08:58 +0000 (14:08 +0100)
commit08680307eb876e389e068ae75f6f6a84248e2263
tree0308377ab4c4c5a3b57e8c048205a7d55529bf81
parent144113b003cf9b26f1ed45ff06d867711f4133c6
staging: comedi: ni_atmio: make device_ids const

The `device_ids[]` passed to `MODULE_DEVICE_TABLE()` should be `const`.
When the "ni_atmio" driver is built-in, gcc warns about `device_ids`
being defined but ununsed.  Make it `const`.

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