• Kees Cook's avatar
    hdlc: Convert timers to use timer_setup() · d26c089e
    Kees Cook authored
    In preparation for unconditionally passing the struct timer_list pointer to
    all timer callbacks, switch to using the new timer_setup() and from_timer()
    to pass the timer pointer explicitly. This adds a pointer back to the
    net_device, and drops needless open-coded resetting of the .function and
    .data fields.
    
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Krzysztof Halasa <khc@pm.waw.pl>
    Cc: netdev@vger.kernel.org
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d26c089e
hdlc_cisco.c 9.54 KB