• Kees Cook's avatar
    net: hns: Convert timers to use timer_setup() · d039ef68
    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. Switches test of .data field to
    .function, since .data will be going away.
    
    Cc: Yisen Zhuang <yisen.zhuang@huawei.com>
    Cc: Salil Mehta <salil.mehta@huawei.com>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: lipeng <lipeng321@huawei.com>
    Cc: Lin Yun Sheng <linyunsheng@huawei.com>
    Cc: Kejian Yan <yankejian@huawei.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: netdev@vger.kernel.org
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d039ef68
hns_enet.c 64.3 KB