iio:adc:berlin2-adc: use channel-array size directly
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 27 Jul 2015 22:39:02 +0000 (00:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Aug 2015 18:08:45 +0000 (19:08 +0100)
commit546384c968383b512ba50f77c76ae7bdfa321f31
treec58913a3657b33dc7ce2cf4ba95905a0cf74afe7
parent609e9d88f277bfe83392595745cc3976d42125b2
iio:adc:berlin2-adc: use channel-array size directly

Drop the otherwise unused definition of the channel-array size and use it
directly in _probe - makes it a bit more obvious.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/berlin2-adc.c