mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
can: dev: can_get_ctrlmode_str: use capitalized ctrlmode strings
Unify the ctrlmode related strings to the command line options of the 'ip' tool from the iproute2 package. The capitalized strings are also shown when the detailed interface configuration is printed by 'ip'. Suggested-by: Stephane Grosjean <stephane.grosjean@hms-networks.com> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Link: https://patch.msgid.link/20251126-canxl-v8-1-e7e3eb74f889@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
ab084f0b8d
commit
66e75b2758
@@ -92,29 +92,29 @@ const char *can_get_ctrlmode_str(u32 ctrlmode)
|
||||
{
|
||||
switch (ctrlmode & ~(ctrlmode - 1)) {
|
||||
case 0:
|
||||
return "none";
|
||||
return "(none)";
|
||||
case CAN_CTRLMODE_LOOPBACK:
|
||||
return "loopback";
|
||||
return "LOOPBACK";
|
||||
case CAN_CTRLMODE_LISTENONLY:
|
||||
return "listen-only";
|
||||
return "LISTEN-ONLY";
|
||||
case CAN_CTRLMODE_3_SAMPLES:
|
||||
return "triple-sampling";
|
||||
return "TRIPLE-SAMPLING";
|
||||
case CAN_CTRLMODE_ONE_SHOT:
|
||||
return "one-shot";
|
||||
return "ONE-SHOT";
|
||||
case CAN_CTRLMODE_BERR_REPORTING:
|
||||
return "berr-reporting";
|
||||
return "BERR-REPORTING";
|
||||
case CAN_CTRLMODE_FD:
|
||||
return "fd";
|
||||
return "FD";
|
||||
case CAN_CTRLMODE_PRESUME_ACK:
|
||||
return "presume-ack";
|
||||
return "PRESUME-ACK";
|
||||
case CAN_CTRLMODE_FD_NON_ISO:
|
||||
return "fd-non-iso";
|
||||
return "FD-NON-ISO";
|
||||
case CAN_CTRLMODE_CC_LEN8_DLC:
|
||||
return "cc-len8-dlc";
|
||||
return "CC-LEN8-DLC";
|
||||
case CAN_CTRLMODE_TDC_AUTO:
|
||||
return "fd-tdc-auto";
|
||||
return "TDC-AUTO";
|
||||
case CAN_CTRLMODE_TDC_MANUAL:
|
||||
return "fd-tdc-manual";
|
||||
return "TDC-MANUAL";
|
||||
default:
|
||||
return "<unknown>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user