diff options
| author | Crestez Dan Leonard <leonard.crestez@intel.com> | 2016-04-18 17:31:56 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2016-04-24 10:23:02 +0100 |
| commit | d5d8f49b634520a98337fd413eef86da4e63e4fd (patch) | |
| tree | ef91565fff86d7b5e3cad81c414e5dfd31ebaeb4 /tools/perf/scripts | |
| parent | max44000: Support controlling LED current output (diff) | |
| download | linux-d5d8f49b634520a98337fd413eef86da4e63e4fd.tar.gz linux-d5d8f49b634520a98337fd413eef86da4e63e4fd.zip | |
max44000: Expose ambient sensor scaling
This patch exposes ALSTIM as illuminance_integration_time and ALSPGA as
illuminance_scale.
Changing ALSTIM also changes the number of bits available in the data
register. This is handled inside raw value reading because:
* It's very easy to shift a few bits
* It allows SCALE and INT_TIME to be completely independent controls
* Buffer support requires constant scan_type.realbits per-channel
Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
