diff options
| author | Matt Ranostay <[email protected]> | 2018-06-09 06:58:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-07-07 15:44:52 +0000 |
| commit | ce054546cc2c26891cefa2f284d90d93b52205de (patch) | |
| tree | c1bed972eaf4f9b1bca1df6861aecddf761fcda1 /drivers/tty/serial/sccnxp.c | |
| parent | misc: mic: fix passing the current time (diff) | |
| download | kernel-ce054546cc2c26891cefa2f284d90d93b52205de.tar.gz kernel-ce054546cc2c26891cefa2f284d90d93b52205de.zip | |
tsl2550: fix lux1_input error in low light
ADC channel 0 photodiode detects both infrared + visible light,
but ADC channel 1 just detects infrared. However, the latter is a bit
more sensitive in that range so complete darkness or low light causes
a error condition in which the chan0 - chan1 is negative that
results in a -EAGAIN.
This patch changes the resulting lux1_input sysfs attribute message from
"Resource temporarily unavailable" to a user-grokable lux value of 0.
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Matt Ranostay <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
