iio:light:stk3310: use correct names and type for state
authorHartmut Knaack <knaack.h@gmx.de>
Thu, 9 Jul 2015 21:51:32 +0000 (23:51 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 12 Aug 2015 21:16:27 +0000 (22:16 +0100)
commit952c3aa3fb5538aa5026980cfdedb3d38829b67e
tree6123804ed69b168bb7de36b428afca3b7f5e9a2a
parent7c7a9eeaa335df03d692ad65e0767020ad1be374
iio:light:stk3310: use correct names and type for state

Indicate the bit number of predefined states, make use of these names and
change the state type in _resume to u8 to avoid type casting.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Reviewed-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/stk3310.c