diff options
| author | Oliver Lang <[email protected]> | 2021-06-10 15:46:17 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-06-13 17:00:18 +0100 |
| commit | 421a26f3d7a7c3ca43f3a9dc0f3cb0f562d5bd95 (patch) | |
| tree | bb9e3bb86fc4343c2840cf571af29bd3661d3989 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 2ac0b029a04b673ce83b5089368f467c5dca720c (diff) | |
iio: ltr501: ltr559: fix initialization of LTR501_ALS_CONTR
The ltr559 chip uses only the lowest bit of the ALS_CONTR register to
configure between active and stand-by mode. In the original driver
BIT(1) is used, which does a software reset instead.
This patch fixes the problem by using BIT(0) as als_mode_active for
the ltr559 chip.
Fixes: 8592a7eefa54 ("iio: ltr501: Add support for ltr559 chip")
Signed-off-by: Oliver Lang <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Tested-by: Nikita Travkin <[email protected]> # ltr559
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions