Skip to content
Commit 4e5eb7ef authored by Dan Carpenter's avatar Dan Carpenter Committed by Alexandre Belloni
Browse files

rtc: pcf2127: fix error code in pcf2127_enable_ts()



This error path accidentally returns success.  Return -EINVAL instead.

Fixes: 420cc9e8 ("rtc: pcf2127: add support for multiple TS functions")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarBruno Thomsen <bruno.thomsen@gmail.com>
Reviewed-by: default avatarHugo Villeneuve <hugo@hugovil.com>
Reviewed-by: default avatarHugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/55b9c84b-9d21-444f-b91a-cf9316b65833@moroto.mountain


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent d890cfc2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment