• Stephen Boyd's avatar
    usb: chipidea: Consolidate extcon notifiers · 5cc49268
    Stephen Boyd authored
    The two extcon notifiers are almost the same except for the
    variable name for the cable structure and the id notifier inverts
    the cable->state logic. Make it the same and replace two
    functions with one to save some lines. This also makes it so that
    the id cable state is true when the id pin is pulled low, so we
    change the name of ->state to ->connected to properly reflect
    that we're interested in the cable being connected.
    Acked-by: default avatarPeter Chen <peter.chen@nxp.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: "Ivan T. Ivanov" <iivanov.xz@gmail.com>
    Signed-off-by: default avatarStephen Boyd <stephen.boyd@linaro.org>
    Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
    5cc49268
otg.c 5.14 KB