OpenCloudOS-Kernel/drivers/net/can
Marc Kleine-Budde c6b7348924 can: m_can: use struct m_can_classdev as drvdata
The m_can driver's suspend and resume functions (m_can_class_suspend() and
m_can_class_resume()) make use of dev_get_drvdata() and assume that the drvdata
is a pointer to the struct net_device.

With upcoming conversion of the tcan4x5x driver to pm_runtime this assumption
is no longer valid. As the suspend and resume functions actually need a struct
m_can_classdev pointer, change the m_can_platform and the m_can_pci driver to
hold a pointer to struct m_can_classdev instead, as the tcan4x5x driver already
does.

Link: https://lore.kernel.org/r/20201212175518.139651-8-mkl@pengutronix.de
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2020-12-14 14:24:17 +01:00
..
c_can Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
cc770 can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
ifi_canfd can: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00
m_can can: m_can: use struct m_can_classdev as drvdata 2020-12-14 14:24:17 +01:00
mscan can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
peak_canfd can: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00
rcar can: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00
sja1000 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
softing Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-11 22:29:38 -08:00
spi can: mcp251xfd: Add support for internal loopback mode 2020-12-10 10:40:10 +01:00
usb can: pcan_usb_core: fix fall-through warnings for Clang 2020-11-29 21:19:11 +01:00
Kconfig can: slcan: update dead link 2020-09-21 10:13:16 +02:00
Makefile can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices 2019-07-24 10:31:53 +02:00
at91_can.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
dev.c can: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00
flexcan.c can: flexcan: convert the driver to DT-only 2020-12-10 10:40:10 +01:00
grcan.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
janz-ican3.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
kvaser_pciefd.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
led.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pch_can.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
rx-offload.c can: rx-offload: can_rx_offload_offload_one(): avoid double unlikely() notation when using IS_ERR() 2020-12-10 10:10:43 +01:00
slcan.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
sun4i_can.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
ti_hecc.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
vcan.c can: make use of preallocated can_ml_priv for per device struct can_dev_rcv_lists 2019-09-04 13:29:15 +02:00
vxcan.c treewide: rename nla_strlcpy to nla_strscpy. 2020-11-16 08:08:54 -08:00
xilinx_can.c can: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00