extcon: Fix return value in extcon_register_interest()
Propagate the value returned from extcon_find_cable_index() instead of -ENODEV. For readability, -EINVAL is returned in place of the variable. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
Showing
想要评论请 注册 或 登录