staging: comedi: Use ARRAY_SIZE for sizes of arrays
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Fri, 12 Feb 2016 00:07:48 +0000 (19:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:47:27 +0000 (19:47 -0800)
commite563637b5fef2d1fbcd1efe457d4168fde7b3e0d
tree49cb3ebfbd4b659b42ed714fd14a68430d6835b7
parent222c402abfc864bbabd7cb359f0ebce36558f123
staging: comedi: Use ARRAY_SIZE for sizes of arrays

Use ARRAY_SIZE to calculate the size of an array to make code concise.
The semantic patch used can be found here:
https://github.com/coccinelle/coccinellery/commit/9cbab452a3a2e18439e8386d6c4a68ee42c3ee2b

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_c_common.c [new file with mode: 0644]
drivers/staging/comedi/drivers/ni_mio_common.c