iio:light:cm3323: clear bitmask before set
commit19d75d2ca962e8a7d3e2351f9062bd7093e0941f
authorHartmut Knaack <knaack.h@gmx.de>
Wed, 17 Jun 2015 22:31:59 +0000 (18 00:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:01 +0000 (3 09:29 -0700)
treebd0afa056d0db00933cafadfc2616aa940715e21
parenta6edb0fca0fa693468a340a8200efdfa7e9a4f9b
iio:light:cm3323: clear bitmask before set

commit c288503b32e8c5534062a05ec565d28bffa06db3 upstream.

When setting the bits for integration time, the appropriate bitmask needs
to be cleared first.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/cm3323.c