• Gwenhael Goavec-Merou's avatar
    zio: drivers: zio-vmk8055: use timer_setup instead of setup_timer with kernel >… · f925faf8
    Gwenhael Goavec-Merou authored
    zio: drivers: zio-vmk8055: use timer_setup instead of setup_timer with kernel > 4.15, add dedicated callback
    
    Since 4.15 timer callback take a struct timer_list argument instead of
    unsigned long.
    This patch split zvmk80xx_send_urb (timer callback) to a common function
    (__zvmk80xx_send_urb) with a struct zvmk80xx_cset parameter and two
    dedicated function according to kernel version. Since the signature of the
    common function has changed, call in zvmk80xx_generic_raw_io is updated too
    to suppress cast zvmk80xx_cset -> unsigned long.
    Signed-off-by: 's avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
    Signed-off-by: Federico Vaga <federico.vaga@vaga.pv.it> (CERN)
    f925faf8
zio-vmk8055.c 14.9 KB