]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: cdc_ncm: use new API for bh tasklet
authorEmil Renner Berthing <kernel@esmil.dk>
Sat, 30 Jan 2021 23:46:37 +0000 (00:46 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 22:22:21 +0000 (14:22 -0800)
commit5408bf4f64201ecba4044b21aa00c26d6e3b24a0
tree195ffe8f06bb7ee0dcf313427ff3c86b62920271
parent04d790d4bcfae583e00cfdad91cfc2c16171ea70
net: usb: cdc_ncm: use new API for bh tasklet

This converts the driver to use the new tasklet API introduced in
commit 533266a21b2b ("tasklet: Introduce new initialization API")

It is unfortunate that we need to add a pointer to the driver context to
get back to the usbnet device, but the space will be reclaimed once
there are no more users of the old API left and we can remove the data
value and flag from the tasklet struct.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Link: https://lore.kernel.org/r/20210130234637.26505-1-kernel@esmil.dk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/cdc_ncm.c
include/linux/usb/cdc_ncm.h