[PATCH] staging: media: soc_camera: Enclose macro with parentheses

From: Guilherme Ricioli
Date: Fri Apr 24 2020 - 15:58:18 EST


Fix checkpatch error "ERROR: Macros with complex values should be
enclosed in parentheses" in soc_camera.c:241.

Signed-off-by: Guilherme Ricioli <guilherme.riciolic@xxxxxxxxx>
---
drivers/staging/media/soc_camera/soc_camera.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/media/soc_camera/soc_camera.c b/drivers/staging/media/soc_camera/soc_camera.c
index 39f513f..c2f96ea 100644
--- a/drivers/staging/media/soc_camera/soc_camera.c
+++ b/drivers/staging/media/soc_camera/soc_camera.c
@@ -238,8 +238,8 @@ unsigned long soc_camera_apply_board_flags(struct soc_camera_subdev_desc *ssdd,
}
EXPORT_SYMBOL(soc_camera_apply_board_flags);

-#define pixfmtstr(x) (x) & 0xff, ((x) >> 8) & 0xff, ((x) >> 16) & 0xff, \
- ((x) >> 24) & 0xff
+#define pixfmtstr(x) ((x) & 0xff, ((x) >> 8) & 0xff, ((x) >> 16) & 0xff, \
+ ((x) >> 24) & 0xff)

static int soc_camera_try_fmt(struct soc_camera_device *icd,
struct v4l2_format *f)
--
2.7.4