staging: iio: light: isl29028: fix correct mask value
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 16 Apr 2012 15:57:42 +0000 (21:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 23:37:05 +0000 (16:37 -0700)
commit892cb6dc9fbbfa7281f3aa53aa6599618aec7cb1
tree89f29956b81b65043e54b82b89324aee16f390bf
parentc5714b5acfb0ea7816340ba37bb8631c7061448e
staging: iio: light: isl29028: fix correct mask value

The mask value in the read_raw/write_raw is absolute
value, not the bit position value.
Fixing this in the implemented function to check value,
not with the bit position value.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/isl29028.c