Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3b813798 authored by Wei Yongjun's avatar Wei Yongjun Committed by Jonathan Cameron
Browse files

staging:iio:light:tsl2x7x: fix the error handling in tsl2x7x_probe()



Fix to return -EINVAL in the i2c device found error handling
case instead of 0, as done elsewhere in this function.
And also correct the fail1 and fail2 lable to do the right thing.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent c80712c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment