]> git.karo-electronics.de Git - linux-beck.git/commit
iio:adc:berlin2-adc: Fix register definition
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 27 Jul 2015 22:38:57 +0000 (00:38 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 12 Aug 2015 18:24:08 +0000 (19:24 +0100)
commit57cb06762d5e587d58005b17b0fa99bd1e391c29
treea69f364e70f5ef70c3ff08e005693c1a99cf34ee
parent95ddd3f4b17e1df20b5e23d7b81614e7c8a643da
iio:adc:berlin2-adc: Fix register definition

Active channel number is stored in BERLIN2_SM_CTRL as value, instead of a
bit map.
The masks for channel interrupts and data ready are a 16 bits wide bit
map each, instead of just 4 bits.

Also correct the data mask for the temperature sensor, which was
Reported-by: Antoine Tenart <antoine.tenart@free-electrons.com>
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