]> git.ipfire.org Git - thirdparty/linux.git/commit
can: netlink: can_changelink(): rename tdc_mask into fd_tdc_flag_provided
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 12 Nov 2024 16:50:20 +0000 (01:50 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 10 Jun 2025 07:34:32 +0000 (09:34 +0200)
commit527b99f44def0decc39cef434fd26cdaef74d31c
treeb319b881e7338876c18cf18130f9b46c99bfa80c
parent23c0dc95bfa86503eed9fa99423fa0bb39a3bcb0
can: netlink: can_changelink(): rename tdc_mask into fd_tdc_flag_provided

The only purpose of the tdc_mask variable is to check whether or not
any tdc flags (CAN_CTRLMODE_TDC_{AUTO,MANUAL}) were provided. At this
point, the actual value of the flags do no matter any more because
these can be deduced from some other information.

Rename the tdc_mask variable into fd_tdc_flag_provided to make this
more explicit. Note that the fd_ prefix is added in preparation of the
introduction of CAN XL.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20241112165118.586613-12-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/netlink.c