diff options
| author | Erik Lilliebjerg <elilliebjerg@nvidia.com> | 2015-08-02 20:55:22 -0400 |
|---|---|---|
| committer | Robert Collins <rcollins@nvidia.com> | 2017-07-17 17:32:21 -0400 |
| commit | 33271d63ea7295fc0e6f2a95e965ee9b8761a7bc (patch) | |
| tree | a121ee46ea2736872ebadefb4a4e8ea01920019e /include/linux | |
| parent | 681744c5542aa8318eaea4c1aa04d7f93fcb8a5a (diff) | |
iio: common: nvs: Fix threshold high attribute.
- Fix the old value on a threshold high attribute write.
- Simplify ALS calibation by entering just the calibrated values at runtime.
This is opposed to also having to enter uncalibrated values and only via
the device tree.
- Add ability to modify interpolation (calibrated and uncalibrated) values at
runtime.
Bug 1671144
Change-Id: I6a9b132d306a64f1fca3161f3520e6677d5f647b
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/777749
(cherry picked from commit 93077f4b94531b8aeae93eb7db892e9c8420f012)
Reviewed-on: http://git-master/r/781168
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_light.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvs_light.h b/include/linux/nvs_light.h index 9d04fea25..dc5d67218 100644 --- a/include/linux/nvs_light.h +++ b/include/linux/nvs_light.h | |||
| @@ -114,6 +114,8 @@ int nvs_light_read(struct nvs_light *nl); | |||
| 114 | int nvs_light_enable(struct nvs_light *nl); | 114 | int nvs_light_enable(struct nvs_light *nl); |
| 115 | int nvs_light_of_dt(struct nvs_light *nl, const struct device_node *np, | 115 | int nvs_light_of_dt(struct nvs_light *nl, const struct device_node *np, |
| 116 | const char *dev_name); | 116 | const char *dev_name); |
| 117 | void nvs_light_threshold_calibrate_lo(struct nvs_light *nl, int lo); | ||
| 118 | void nvs_light_threshold_calibrate_hi(struct nvs_light *nl, int hi); | ||
| 117 | ssize_t nvs_light_dbg(struct nvs_light *nl, char *buf); | 119 | ssize_t nvs_light_dbg(struct nvs_light *nl, char *buf); |
| 118 | 120 | ||
| 119 | #endif /* _NVS_LIGHT_H_ */ | 121 | #endif /* _NVS_LIGHT_H_ */ |
