summaryrefslogtreecommitdiffstats
path: root/drivers/misc/tsl2550.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/tsl2550.c')
-rw-r--r--drivers/misc/tsl2550.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/tsl2550.c b/drivers/misc/tsl2550.c
index adf46072cb37..3fce3b6a3624 100644
--- a/drivers/misc/tsl2550.c
+++ b/drivers/misc/tsl2550.c
@@ -177,7 +177,7 @@ static int tsl2550_calculate_lux(u8 ch0, u8 ch1)
} else
lux = 0;
else
- return -EAGAIN;
+ return 0;
/* LUX range check */
return lux > TSL2550_MAX_LUX ? TSL2550_MAX_LUX : lux;