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

Commit a05f44c8 authored by Stephen Boyd's avatar Stephen Boyd Committed by Chanwoo Choi
Browse files

extcon: Check for incorrect connection type in notifier register



If we call extcon_register_notifier() with the wrong cable type,
it blows up with an oops instead of returning an error code.
Let's be nice and fail gracefully given that the consumer might
not know if the cable is supported by the extcon provider.

Signed-off-by: default avatarStephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 70a7da45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment