iio:magnetometer:bmc150_magn: replace magic value
authorHartmut Knaack <knaack.h@gmx.de>
Fri, 17 Jul 2015 08:52:27 +0000 (10:52 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:04:15 +0000 (11:04 +0100)
commit47764c7918f5dd648ae8f6f61db1aaab1b9c09dd
tree5db202cf6c0e19315af8c6f7ddb73ebbee62b05a
parent2563f7fc83d655792ec9999e2dda7a37172ae6aa
iio:magnetometer:bmc150_magn: replace magic value

Construct the scanmask using its descriptive axis names (as used in
iio_chan_spec) instead of a 'magic' value.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/bmc150_magn.c