summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-11-13 21:47:02 +0530
committerforkbomb <keepcalm444@gmail.com>2015-11-25 08:33:34 +1100
commitef3bca4b0959df074d5b0867b95699c330b5779e (patch)
tree6835928033bcb67d6a8c7331c875e583da080216
parent6008fc1c39b13497974c0bb0df654a625cdd33fa (diff)
downloaddevice_samsung_i9300-ef3bca4b0959df074d5b0867b95699c330b5779e.zip
device_samsung_i9300-ef3bca4b0959df074d5b0867b95699c330b5779e.tar.gz
device_samsung_i9300-ef3bca4b0959df074d5b0867b95699c330b5779e.tar.bz2
i9300: libsensors: L bringup - fix build
Change-Id: I3c5cd29a497d2a84da7742b8fdf54bf4e0869cee
-rw-r--r--libsensors/exynos_sensors.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/libsensors/exynos_sensors.c b/libsensors/exynos_sensors.c
index 36f061b..e3d810f 100644
--- a/libsensors/exynos_sensors.c
+++ b/libsensors/exynos_sensors.c
@@ -42,19 +42,26 @@
struct sensor_t exynos_sensors[] = {
{ "LSM330DLC Acceleration Sensor", "STMicroelectronics", 1, SENSOR_TYPE_ACCELEROMETER,
- SENSOR_TYPE_ACCELEROMETER, 19.61f, 0.0096f, 0.23f, 10000, 0, 0, {}, },
+ SENSOR_TYPE_ACCELEROMETER, 19.61f, 0.0096f, 0.23f, 10000, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_ON_CHANGE_MODE, {}, },
{ "AKM8975 Magnetic Sensor", "Asahi Kasei", 1, SENSOR_TYPE_MAGNETIC_FIELD,
- SENSOR_TYPE_MAGNETIC_FIELD, 2000.0f, 0.06f, 6.8f, 10000, 0, 0, {}, },
+ SENSOR_TYPE_MAGNETIC_FIELD, 2000.0f, 0.06f, 6.8f, 10000, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_ON_CHANGE_MODE, {}, },
{ "Orientation Sensor", "Exynos Sensors", 1, SENSOR_TYPE_ORIENTATION,
- SENSOR_TYPE_ORIENTATION, 360.0f, 0.1f, 0.0f, 10000, 0, 0, {}, },
+ SENSOR_TYPE_ORIENTATION, 360.0f, 0.1f, 0.0f, 10000, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_ON_CHANGE_MODE, {}, },
{ "CM36651 Light Sensor", "Capella", 1, SENSOR_TYPE_LIGHT,
- SENSOR_TYPE_LIGHT, 121240.0f, 1.0f, 0.2f, 0, 0, 0, {}, },
+ SENSOR_TYPE_LIGHT, 121240.0f, 1.0f, 0.2f, 0, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_ON_CHANGE_MODE, {}, },
{ "CM36651 Proximity Sensor", "Capella", 1, SENSOR_TYPE_PROXIMITY,
- SENSOR_TYPE_PROXIMITY, 8.0f, 8.0f, 1.3f, 0, 0, 0, {}, },
+ SENSOR_TYPE_PROXIMITY, 8.0f, 8.0f, 1.3f, 0, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_WAKE_UP | SENSOR_FLAG_ON_CHANGE_MODE, {}, },
{ "LSM330DLC Gyroscope Sensor", "STMicroelectronics", 1, SENSOR_TYPE_GYROSCOPE,
- SENSOR_TYPE_GYROSCOPE, 8.73f, 0.00031f, 6.1f, 5000, 0, 0, {}, },
+ SENSOR_TYPE_GYROSCOPE, 8.73f, 0.00031f, 6.1f, 5000, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_ON_CHANGE_MODE, {}, },
{ "LPS331AP Pressure Sensor", "STMicroelectronics", 1, SENSOR_TYPE_PRESSURE,
- SENSOR_TYPE_PRESSURE, 1260.0f, 0.00024f, 0.045f, 40000, 0, 0, {}, },
+ SENSOR_TYPE_PRESSURE, 1260.0f, 0.00024f, 0.045f, 40000, 0, 0, 0, 0, 20000,
+ SENSOR_FLAG_CONTINUOUS_MODE, {}, },
};
int exynos_sensors_count = sizeof(exynos_sensors) / sizeof(struct sensor_t);