Commit 36e4f2b2 authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Mauro Carvalho Chehab

media: i2c: ov5648/ov8865: Minor cosmetic fixes

This solves a few minor cosmetic issues picked up by checkpatch for
the OV5648 and OV8865 drivers.
Signed-off-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 066a94e2
...@@ -496,7 +496,8 @@ ...@@ -496,7 +496,8 @@
container_of(s, struct ov5648_sensor, subdev) container_of(s, struct ov5648_sensor, subdev)
#define ov5648_ctrl_subdev(c) \ #define ov5648_ctrl_subdev(c) \
(&container_of(c->handler, struct ov5648_sensor, ctrls.handler)->subdev) (&container_of((c)->handler, struct ov5648_sensor, \
ctrls.handler)->subdev)
/* Data structures */ /* Data structures */
......
...@@ -223,7 +223,6 @@ ...@@ -223,7 +223,6 @@
#define OV8865_FORMAT2_FLIP_HORZ_SENSOR_EN BIT(1) #define OV8865_FORMAT2_FLIP_HORZ_SENSOR_EN BIT(1)
#define OV8865_FORMAT2_SYNC_HBIN_EN BIT(0) #define OV8865_FORMAT2_SYNC_HBIN_EN BIT(0)
#define OV8865_INC_Y_ODD_REG 0x382a #define OV8865_INC_Y_ODD_REG 0x382a
#define OV8865_INC_Y_ODD(v) ((v) & GENMASK(4, 0)) #define OV8865_INC_Y_ODD(v) ((v) & GENMASK(4, 0))
#define OV8865_INC_Y_EVEN_REG 0x382b #define OV8865_INC_Y_EVEN_REG 0x382b
...@@ -460,7 +459,8 @@ ...@@ -460,7 +459,8 @@
container_of(s, struct ov8865_sensor, subdev) container_of(s, struct ov8865_sensor, subdev)
#define ov8865_ctrl_subdev(c) \ #define ov8865_ctrl_subdev(c) \
(&container_of(c->handler, struct ov8865_sensor, ctrls.handler)->subdev) (&container_of((c)->handler, struct ov8865_sensor, \
ctrls.handler)->subdev)
/* Data structures */ /* Data structures */
......
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