summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorErik Lilliebjerg <elilliebjerg@nvidia.com>2015-09-25 00:14:25 -0400
committerRobert Collins <rcollins@nvidia.com>2017-07-18 13:35:36 -0400
commitb5a36f1b7a16366a4ec7a098a9302eb71f9da4ec (patch)
treec51a20b4ee0d3524ebc44eb6dbc9bb38bcc3f6ef /include/linux
parent628ab659f835d18077dd120331d328d5489aa3ec (diff)
iio: common: nvs: NVS v207 DT fixes
- Expanded the NVS device tree parsing return values to include the number of changes made to allow efficient processing for sensor hub. - Add documentation to the NVS device tree parsing call. - Fix drivers using the NVS device tree configuration call for the new change. - Add one-shot sensor support to the NVS IIO interface layer. - Fix the flags attribute debug print in the NVS IIO interface layer. - Fix a possible divide by 0 in the common ALS module. - Fix a possible divide by 0 in the common proximity module. - Fix calibration proximity reporting in common proximity module. - Add a configuration option to not reverse the proximity range if the HW supports this. Typically, the proximity HW value gets larger the closer an object gets. By default NVS reverses this by subtracting the value from the maximum possible value. The configuration option allows this feature to be disabled. Bug 200137195 Change-Id: Ia278cc298fe54cd67e1600f3039c70e69f898ed9 Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-on: http://git-master/r/805080 (cherry picked from commit 5a685485642d333c0ed75da5714ef734ca9dc363) Reviewed-on: http://git-master/r/807680 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Robert Collins <rcollins@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nvs.h b/include/linux/nvs.h
index 4bcd0cc3e..f51e13f7a 100644
--- a/include/linux/nvs.h
+++ b/include/linux/nvs.h
@@ -68,7 +68,7 @@
68#define SENSOR_FLAG_ONE_SHOT_MODE (0x4) 68#define SENSOR_FLAG_ONE_SHOT_MODE (0x4)
69#define SENSOR_FLAG_SPECIAL_REPORTING_MODE (0x6) 69#define SENSOR_FLAG_SPECIAL_REPORTING_MODE (0x6)
70/* end AOS sensors.h */ 70/* end AOS sensors.h */
71#define SENSOR_FLAG_READONLY_MASK (0x6) /* unconfigurable flags */ 71#define SENSOR_FLAG_READONLY_MASK (0xE) /* unconfigurable flags */
72 72
73enum nvs_float_significance { 73enum nvs_float_significance {
74 NVS_FLOAT_MICRO = 0, /* IIO_VAL_INT_PLUS_MICRO */ 74 NVS_FLOAT_MICRO = 0, /* IIO_VAL_INT_PLUS_MICRO */