can: gs_usb: GS_CAN_FLAG_OVERFLOW: make use of BIT()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 19 Nov 2020 12:23:35 +0000 (13:23 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 10 Mar 2022 08:49:14 +0000 (09:49 +0100)
This patch converts the driver to use BIT() to define flags.

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

index 6231c34..23dba5c 100644 (file)
@@ -136,7 +136,7 @@ struct gs_device_bt_const {
        __le32 brp_inc;
 } __packed;
 
-#define GS_CAN_FLAG_OVERFLOW 1
+#define GS_CAN_FLAG_OVERFLOW BIT(0)
 
 struct gs_host_frame {
        u32 echo_id;