summaryrefslogtreecommitdiff
path: root/drivers/net/can/rcar/rcar_canfd.c
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2021-12-14 01:02:23 +0900
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-01-05 12:09:05 +0100
commitc9e1d8ed304cc6106c3241add170193995953325 (patch)
tree962a9dc1e7a578387eebabf452d439bb7d3feead /drivers/net/can/rcar/rcar_canfd.c
parentcc4b08c31b5c51352f258032cc65e884b3e61e6a (diff)
downloadlwn-c9e1d8ed304cc6106c3241add170193995953325.tar.gz
lwn-c9e1d8ed304cc6106c3241add170193995953325.zip
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>
Diffstat (limited to 'drivers/net/can/rcar/rcar_canfd.c')
0 files changed, 0 insertions, 0 deletions