]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: greybus: gb-camera: use BIT() macro for flags
authorZhan Xusheng <zhanxusheng1024@gmail.com>
Mon, 22 Dec 2025 15:24:30 +0000 (23:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 12:50:20 +0000 (13:50 +0100)
Replace (1 << 0) with the BIT(0) macro for input/output flags
to follow Linux kernel coding style.

Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Link: https://patch.msgid.link/20251222152432.68555-2-zhanxusheng@xiaomi.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/gb-camera.h

index 3e09147435a58c8d7039ae9c75e2d7758b2148ab..3e3e879120debece14cfbf09bcabe1a4b2c33018 100644 (file)
@@ -10,9 +10,9 @@
 #include <linux/v4l2-mediabus.h>
 
 /* Input flags need to be set from the caller */
-#define GB_CAMERA_IN_FLAG_TEST         (1 << 0)
+#define GB_CAMERA_IN_FLAG_TEST         BIT(0)
 /* Output flags returned */
-#define GB_CAMERA_OUT_FLAG_ADJUSTED    (1 << 0)
+#define GB_CAMERA_OUT_FLAG_ADJUSTED    BIT(0)
 
 /**
  * struct gb_camera_stream - Represents greybus camera stream.