iio:accel:stk8312: rework macro definitions
authorHartmut Knaack <knaack.h@gmx.de>
Wed, 29 Jul 2015 21:39:37 +0000 (23:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Aug 2015 11:22:16 +0000 (12:22 +0100)
commit03ecd50c50450b3e3173c9dda8adab241b46ae1e
treebcc701901d0ece4fd5d3a89cab48a286dc4d6883
parent18422bb3c1d89b510bb7c590c716dd6ad8e1a1e4
iio:accel:stk8312: rework macro definitions

Make use of BIT to describe register bits, GENMASK for consecutive
bitmasks, rename and sort existing definitions, replace magic value with
an expressive definition, drop an unused definition.

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/accel/stk8312.c