From b5a36f1b7a16366a4ec7a098a9302eb71f9da4ec Mon Sep 17 00:00:00 2001 From: Erik Lilliebjerg Date: Thu, 24 Sep 2015 21:14:25 -0700 Subject: 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 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 Tested-by: Robert Collins --- include/linux/nvs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') 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 @@ #define SENSOR_FLAG_ONE_SHOT_MODE (0x4) #define SENSOR_FLAG_SPECIAL_REPORTING_MODE (0x6) /* end AOS sensors.h */ -#define SENSOR_FLAG_READONLY_MASK (0x6) /* unconfigurable flags */ +#define SENSOR_FLAG_READONLY_MASK (0xE) /* unconfigurable flags */ enum nvs_float_significance { NVS_FLOAT_MICRO = 0, /* IIO_VAL_INT_PLUS_MICRO */ -- cgit v1.2.2