Skip to content
Snippets Groups Projects
Commit fa934c06 authored by Stephen Boyd's avatar Stephen Boyd Committed by Peter Rosin
Browse files

mux: add mux_control_get_optional() API


Sometimes drivers only use muxes under certain scenarios. For
example, the chipidea usb controller may be connected to a usb
switch on some platforms, and connected directly to a usb port on
others. The driver won't know one way or the other though, so add
a mux_control_get_optional() API that allows the driver to
differentiate errors getting the mux from there not being a mux
for the driver to use at all.

Signed-off-by: default avatarStephen Boyd <stephen.boyd@linaro.org>
[minor adjustments to logic, comments and made a function static]
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
parent 4a3928c6
No related branches found
No related tags found
No related merge requests found
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