mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
2563f7fc83
commit
47764c7918
1 changed files with 3 additions and 1 deletions
|
|
@ -651,7 +651,9 @@ static const struct iio_info bmc150_magn_info = {
|
|||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static const unsigned long bmc150_magn_scan_masks[] = {0x07, 0};
|
||||
static const unsigned long bmc150_magn_scan_masks[] = {
|
||||
BIT(AXIS_X) | BIT(AXIS_Y) | BIT(AXIS_Z),
|
||||
0};
|
||||
|
||||
static irqreturn_t bmc150_magn_trigger_handler(int irq, void *p)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue