tools: iio: Add ARRAY_SIZE macro
authorCristina Opriceana <cristina.opriceana@gmail.com>
Mon, 13 Jul 2015 13:20:11 +0000 (16:20 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 20 Jul 2015 17:41:23 +0000 (18:41 +0100)
commit34cbea1908fb686b037e01e5b1ab8e0e67b09ed3
tree7c6186632a1e254502f133a8c4b94a25a45faa57
parent37d38e2bcce055c3988977429dc4336c866df73d
tools: iio: Add ARRAY_SIZE macro

Calculation of the length of an array can be done with the ARRAY_SIZE
macro to make code more abstract and remove the associated
checkpatch.pl warning.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_utils.c
tools/iio/iio_utils.h