mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
net: usb: cdc_ncm: use new API for bh tasklet
This converts the driver to use the new tasklet API introduced in
commit 12cc923f1c ("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>
This commit is contained in:
committed by
Jakub Kicinski
parent
32d1bbb1d6
commit
4f4e54366e
@@ -98,6 +98,8 @@ struct cdc_ncm_ctx {
|
||||
struct hrtimer tx_timer;
|
||||
struct tasklet_struct bh;
|
||||
|
||||
struct usbnet *dev;
|
||||
|
||||
const struct usb_cdc_ncm_desc *func_desc;
|
||||
const struct usb_cdc_mbim_desc *mbim_desc;
|
||||
const struct usb_cdc_mbim_extended_desc *mbim_extended_desc;
|
||||
|
||||
Reference in New Issue
Block a user