summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Dodd <atd7@cornell.edu>2013-11-10 17:39:24 -0500
committerherna <hernanderes34@gmail.com>2013-12-14 20:32:39 +0100
commit16bb954caec673d4c9437d26a5b8db51b58b6bd3 (patch)
treee1c180b3e2ea58b1f5787d0cd948e3b22b86fb79
parentf0e49dacb732adb964e038ef1719cf56113716f4 (diff)
downloaddevice_samsung_n7000-16bb954caec673d4c9437d26a5b8db51b58b6bd3.zip
device_samsung_n7000-16bb954caec673d4c9437d26a5b8db51b58b6bd3.tar.gz
device_samsung_n7000-16bb954caec673d4c9437d26a5b8db51b58b6bd3.tar.bz2
n7000: sensors: Add batching FIFO sizes to sSensorList
Assuming that these should both be 0 on a sensor that doesn't support batching Also reenable building libsensors Change-Id: Id56e1f34b7e8023f9378f80f427ea2059971eb1b
-rw-r--r--libsensors/sensors.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libsensors/sensors.cpp b/libsensors/sensors.cpp
index 4e89a9d..8f43b08 100644
--- a/libsensors/sensors.cpp
+++ b/libsensors/sensors.cpp
@@ -72,31 +72,31 @@ static const struct sensor_t sSensorList[] = {
{ "KR3DM 3-axis Accelerometer",
"STMicroelectronics",
1, SENSORS_ACCELERATION_HANDLE,
- SENSOR_TYPE_ACCELEROMETER, RANGE_A, CONVERT_A, 0.23f, 20000, { } },
+ SENSOR_TYPE_ACCELEROMETER, RANGE_A, CONVERT_A, 0.23f, 20000, 0, 0, { } },
{ "AK8975 3-axis Magnetic field sensor",
"Asahi Kasei Microdevices",
1, SENSORS_MAGNETIC_FIELD_HANDLE,
- SENSOR_TYPE_MAGNETIC_FIELD, 2000.0f, CONVERT_M, 6.8f, 16667, { } },
+ SENSOR_TYPE_MAGNETIC_FIELD, 2000.0f, CONVERT_M, 6.8f, 16667, 0, 0, { } },
{ "AK8973 Orientation sensor",
"Asahi Kasei Microdevices",
1, SENSORS_ORIENTATION_HANDLE,
- SENSOR_TYPE_ORIENTATION, 360.0f, CONVERT_O, 7.8f, 16667, { } },
+ SENSOR_TYPE_ORIENTATION, 360.0f, CONVERT_O, 7.8f, 16667, 0, 0, { } },
{ "GP2A Light sensor",
"Sharp",
1, SENSORS_LIGHT_HANDLE,
- SENSOR_TYPE_LIGHT, 10240.0f, 1.0f, 0.75f, 0, { } },
+ SENSOR_TYPE_LIGHT, 10240.0f, 1.0f, 0.75f, 0, 0, 0, { } },
{ "GP2A Proximity sensor",
"Sharp",
1, SENSORS_PROXIMITY_HANDLE,
- SENSOR_TYPE_PROXIMITY, 5.0f, 5.0f, 0.75f, 0, { } },
+ SENSOR_TYPE_PROXIMITY, 5.0f, 5.0f, 0.75f, 0, 0, 0, { } },
{ "K3G Gyroscope sensor",
"STMicroelectronics",
1, SENSORS_GYROSCOPE_HANDLE,
- SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, CONVERT_GYRO, 6.1f, 1190, { } },
+ SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, CONVERT_GYRO, 6.1f, 1190, 0, 0, { } },
{ "BMP180 Pressure sensor",
"Bosch",
1, SENSORS_PRESSURE_HANDLE,
- SENSOR_TYPE_PRESSURE, 1100.0f, 0.01f, 0.67f, 20000, { } },
+ SENSOR_TYPE_PRESSURE, 1100.0f, 0.01f, 0.67f, 20000, 0, 0, { } },
};