OSDN Git Service

Fix type of recently introduced semi arbitrated sampling rate
authorPatrick Porlan <patrick.porlan@intel.com>
Fri, 13 Feb 2015 15:08:58 +0000 (16:08 +0100)
committerAdriana Reus <adriana.reus@intel.com>
Fri, 27 Feb 2015 16:25:16 +0000 (18:25 +0200)
Sammpling rates are not necessarily integers. Sure, they are in
the case of the MPU-6050, which is fortunately the only chip we
support at the moment with several interrupt driven sensors on
the same iio device, so this is not an issue for now, but still.

Change-Id: Id3fb9a9fb2c6fc2ae032f6484088f14a99e75670
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
common.h

index 757eab2..a7a77d8 100644 (file)
--- a/common.h
+++ b/common.h
@@ -375,7 +375,7 @@ typedef struct
         */
        int needs_enable;
 
-       int semi_arbitrated_rate;       /* Arbitrated sampling rate before we considered other sensors co-located on the same iio device */
+       float semi_arbitrated_rate;     /* Arbitrated sampling rate before we considered other sensors co-located on the same iio device */
 }
 sensor_info_t;