Commit 422de35a authored by Amarjargal Gundjalam's avatar Amarjargal Gundjalam Committed by Greg Kroah-Hartman

staging: media: omap4iss: Replaces bit shift on 1 with BIT Macro

This patch fixes some of the checkpatch issue:

CHECK: Prefer using the BIT macro
Signed-off-by: default avatarAmarjargal Gundjalam <amarjargal.gundjalam@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 107c59e0
...@@ -116,8 +116,8 @@ struct iss_csi2_ctrl_cfg { ...@@ -116,8 +116,8 @@ struct iss_csi2_ctrl_cfg {
#define CSI2_PAD_SOURCE 1 #define CSI2_PAD_SOURCE 1
#define CSI2_PADS_NUM 2 #define CSI2_PADS_NUM 2
#define CSI2_OUTPUT_IPIPEIF (1 << 0) #define CSI2_OUTPUT_IPIPEIF BIT(0)
#define CSI2_OUTPUT_MEMORY (1 << 1) #define CSI2_OUTPUT_MEMORY BIT(1)
struct iss_csi2_device { struct iss_csi2_device {
struct v4l2_subdev subdev; struct v4l2_subdev subdev;
......
...@@ -21,7 +21,7 @@ enum ipipe_input_entity { ...@@ -21,7 +21,7 @@ enum ipipe_input_entity {
IPIPE_INPUT_IPIPEIF, IPIPE_INPUT_IPIPEIF,
}; };
#define IPIPE_OUTPUT_VP (1 << 0) #define IPIPE_OUTPUT_VP BIT(0)
/* Sink and source IPIPE pads */ /* Sink and source IPIPE pads */
#define IPIPE_PAD_SINK 0 #define IPIPE_PAD_SINK 0
......
...@@ -22,8 +22,8 @@ enum ipipeif_input_entity { ...@@ -22,8 +22,8 @@ enum ipipeif_input_entity {
IPIPEIF_INPUT_CSI2B IPIPEIF_INPUT_CSI2B
}; };
#define IPIPEIF_OUTPUT_MEMORY (1 << 0) #define IPIPEIF_OUTPUT_MEMORY BIT(0)
#define IPIPEIF_OUTPUT_VP (1 << 1) #define IPIPEIF_OUTPUT_VP BIT(1)
/* Sink and source IPIPEIF pads */ /* Sink and source IPIPEIF pads */
#define IPIPEIF_PAD_SINK 0 #define IPIPEIF_PAD_SINK 0
......
This diff is collapsed.
...@@ -22,7 +22,7 @@ enum resizer_input_entity { ...@@ -22,7 +22,7 @@ enum resizer_input_entity {
RESIZER_INPUT_IPIPEIF RESIZER_INPUT_IPIPEIF
}; };
#define RESIZER_OUTPUT_MEMORY (1 << 0) #define RESIZER_OUTPUT_MEMORY BIT(0)
/* Sink and source RESIZER pads */ /* Sink and source RESIZER pads */
#define RESIZER_PAD_SINK 0 #define RESIZER_PAD_SINK 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment