sensor: use SENSOR_CHAN_*_XYZ instead of SENSOR_CHAN_*_ANY

SENSOR_CHAN_*_ANY will be deprecated, so use the new SENSOR_CHAN_*_XYZ
enum values.

Change-Id: I91cf25864613a934feab65588969d10c52fd4fe6
Signed-off-by: Bogdan Davidoaia <bogdan.davidoaia@linaro.org>
This commit is contained in:
Bogdan Davidoaia 2017-01-26 12:21:04 +02:00 committed by Anas Nashif
commit a45dd12f0c
19 changed files with 84 additions and 79 deletions

View file

@ -121,7 +121,7 @@ static int bmg160_handle_anymotion_int(struct device *dev)
struct bmg160_device_data *bmg160 = dev->driver_data;
struct sensor_trigger any_trig = {
.type = SENSOR_TRIG_DELTA,
.chan = SENSOR_CHAN_GYRO_ANY,
.chan = SENSOR_CHAN_GYRO_XYZ,
};
if (bmg160->anymotion_handler) {
@ -136,7 +136,7 @@ static int bmg160_handle_dataready_int(struct device *dev)
struct bmg160_device_data *bmg160 = dev->driver_data;
struct sensor_trigger drdy_trig = {
.type = SENSOR_TRIG_DATA_READY,
.chan = SENSOR_CHAN_GYRO_ANY,
.chan = SENSOR_CHAN_GYRO_XYZ,
};
if (bmg160->drdy_handler) {