• Tobin C. Harding's avatar
    staging: ks7010: add enum sleep_mode_type · 63c31af3
    Tobin C. Harding authored
    Driver uses preprocessor directives to define SLP_ASLEEP and
    SLP_ACTIVE. These can be defined using an enumeration type. Doing so
    adds to the readability and gives the usual compiler benefits of
    having an enum. Functions that currently accept integer types can now
    use the new enumeration type, further aiding readability.
    
    Add enumeration type sleep_mode_type. Update code that handles sleep
    mode to use the new enumeration type.
    Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    63c31af3
ks_hostif.c 72.5 KB