Skip to content
Snippets Groups Projects
  • Stephen Boyd's avatar
    fa934c06
    mux: add mux_control_get_optional() API · fa934c06
    Stephen Boyd authored
    
    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>
    fa934c06
    History
    mux: add mux_control_get_optional() API
    Stephen Boyd authored
    
    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>