linux-kernelorg-stable/drivers/net/can/dev
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
..
Makefile
bittiming.c can: bittiming: replace CAN units with the generic ones from linux/units.h 2021-12-08 10:12:58 +01:00
dev.c can: dev: replace can_priv::ctrlmode_static by can_get_static_ctrlmode() 2022-01-05 12:09:05 +01:00
length.c
netlink.c can: dev: replace can_priv::ctrlmode_static by can_get_static_ctrlmode() 2022-01-05 12:09:05 +01:00
rx-offload.c can: do not increase rx_bytes statistics for RTR frames 2022-01-05 12:09:05 +01:00
skb.c