diff options
author | 2021-12-14 01:02:23 +0900 | |
---|---|---|
committer | 2022-01-05 12:09:05 +0100 | |
commit | c9e1d8ed304cc6106c3241add170193995953325 (patch) | |
tree | 962a9dc1e7a578387eebabf452d439bb7d3feead /tools/perf/scripts/python/export-to-postgresql.py | |
parent | can: do not increase tx_bytes statistics for RTR frames (diff) | |
download | wireguard-linux-c9e1d8ed304cc6106c3241add170193995953325.tar.xz wireguard-linux-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions