staging: greybus: gb-camera: use BIT() macro for flags

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>
This commit is contained in:
Zhan Xusheng 2025-12-22 23:24:30 +08:00 committed by Greg Kroah-Hartman
parent e6900ce28c
commit 81a4ecb9fa

View 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.