can: gs_usb: gs_can_open(): sort checks for ctrlmode
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 29 Sep 2022 08:01:22 +0000 (10:01 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 20 Oct 2022 09:58:57 +0000 (11:58 +0200)
commitf6adf410f70b6875ba6412e8909c742c3853201d
tree965d663e482d3b26d175ce2a3b9166f52d4a57eb
parentdeb8534e8ef3905b5a977486d11d4d36b4f94347
can: gs_usb: gs_can_open(): sort checks for ctrlmode

Sort the checks for dev->can.ctrlmode by values of CAN_CTRLMODE_*, so
that it's clear where to add new checks.

While there, remove the comment that the Atmel UC3C hardware doesn't
support One Shot Mode. The One Shot mode is only available and to be
activated by the user, if the device specifies the feature bit
GS_CAN_FEATURE_ONE_SHOT.

Link: https://lore.kernel.org/all/20221019221016.1659260-3-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c