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)
commit4f4e54366eae20d5867864001db57c5d90693d8c
tree195ffe8f06bb7ee0dcf313427ff3c86b62920271
parent32d1bbb1d609f5a78b0c95e2189f398a52a3fbf7
net: usb: cdc_ncm: use new API for bh tasklet

This converts the driver to use the new tasklet API introduced in
commit 12cc923f1ccc ("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