• [PATCH v3 05/19] thunderbolt: Move thunderbolt domain structure to thun

    From Mika Westerberg@21:1/5 to All on Mon Oct 2 12:40:01 2017
    These are needed by Thunderbolt services so move them to thunderbolt.h
    to make sure they are available outside of drivers/thunderbolt.

    Signed-off-by: Mika Westerberg <[email protected]>
    Reviewed-by: Michael Jamet <[email protected]>
    Reviewed-by: Yehezkel Bernat <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    ---
    drivers/thunderbolt/tb.h | 42 ------------------------------------------
    include/linux/thunderbolt.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
    2 files changed, 45 insertions(+), 42 deletions(-)

    diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
    index e0deee4f1eb0..2fefe76621ca 100644
    --- a/drivers/thunderbolt/tb.h
    +++ b/drivers/thunderbolt/tb.h
    @@ -39,20 +39,6 @@ struct tb_switch_nvm {
    bool authenticating;
    };

    -/**
    - * enum tb_security_level - Thunderbolt security level
    - * @TB_SECURITY_NONE: No security, legacy mode
    - * @TB_SECURITY_USER: User approval required at minimum
    - * @TB_SECURITY_SECURE: One time saved key required at minimum
    - * @TB_SECURITY_DPONLY: Only tunnel Display port (and USB)
    - */
    -enum tb_security_level {
    - TB_SECURITY_NONE,
    - TB_SECURITY_USER,
    - TB_SECURITY_SECURE,
    - TB_SECURITY_DPONLY,
    -};
    -
    #define TB_SWITCH_KEY_SIZE 32
    /* Each physical port contains 2 links on modern controllers */
    #define TB_SWITCH_LINKS_PER_PHY_POR