]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
iio:accel:bmc150-accel: make use of mask definition
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 15 Jun 2015 21:48:25 +0000 (23:48 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Jun 2015 13:44:32 +0000 (14:44 +0100)
commitfdd15f6594f6bc466a01da28ddd2f11bb0e47a9f
tree843dc75f6eed46cb45c604249d1cef19b03508c8
parent825c50dba0139b0322436ddda7d11f043955875e
iio:accel:bmc150-accel: make use of mask definition

BMC150_ACCEL_SLOPE_THRES_MASK was defined some time ago, but its 'magic'
value got used instead in bmc150_accel_write_event(). Make use of it for
improved readability.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Reviewed-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel.c