linux-kernelorg-stable/drivers/net
Vincent Mailhol c9e1d8ed30 can: dev: replace can_priv::ctrlmode_static by can_get_static_ctrlmode()
The statically enabled features of a CAN controller can be retrieved
using below formula:

| u32 ctrlmode_static = priv->ctrlmode & ~priv->ctrlmode_supported;

As such, there is no need to store this information. This patch remove
the field ctrlmode_static of struct can_priv and provides, in
replacement, the inline function can_get_static_ctrlmode() which
returns the same value.

Link: https://lore.kernel.org/all/20211213160226.56219-2-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-01-05 12:09:05 +01:00
..
appletalk
arcnet
bonding
caif
can can: dev: replace can_priv::ctrlmode_static by can_get_static_ctrlmode() 2022-01-05 12:09:05 +01:00
dsa net: dsa: seville: name change for clarity from pcs to mdio_device 2022-01-02 18:48:47 +00:00
ethernet ethernet/sfc: remove redundant rc variable 2022-01-04 12:41:41 +00:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim
pcs net: pcs: lynx: use a common naming scheme for all lynx_pcs variables 2022-01-02 18:48:47 +00:00
phy phy: nxp-c45-tja11xx: add extts and perout support 2022-01-04 12:14:19 +00:00
plip
ppp
slip
team
usb
vmxnet3
wan
wireguard
wireless
wwan Revert "net: wwan: iosm: Keep device at D0 for s2idle case" 2022-01-04 18:15:17 -08:00
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c