aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMårten Lindahl <[email protected]>2022-09-26 11:18:59 +0200
committerJonathan Cameron <[email protected]>2022-11-23 19:43:57 +0000
commite21b5b1f26694a4498ca11a15e09ccc0a72abb81 (patch)
treea9ecc556f0c5764a55c4a770a392cf890edf4952 /tools/perf/scripts/python
parent3f4033a811bcd1a1f077ce5297488a5c4dd30eb1 (diff)
iio: light: vcnl4000: Preserve conf bits when toggle power
As the vcnl4040 and vcnl4200 chip uses runtime power management for turning the ambient light and proximity sensors on/off, it overwrites the entire register each time. In ALS_CONF register bit fields ALS_IT, ALS_PERS, ALS_INT_EN are overwritten. In PS_CONF1 register bit fields PS_DUTY, PS_PERS, PS_IT, PS_HD, and PS_INT are overwritten. Add functions for preserving the affected bit fields when changing power state. Signed-off-by: Mårten Lindahl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions