Staging: media/sn9c102/sn9c102_hv7131d.c: fixed pointer coding style issues
Subsystems (2)
PATCH 1/1 Staging: media/sn9c102/sn9c102_hv7131d.c: fixed pointer coding style issues
Fixed pointer coding style issues reported by checkpatch (Eudyptula challenge).
Signed-off-by Tair Rzayev <[email protected]>
--- drivers/staging/media/sn9c102/sn9c102_hv7131d.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
drivers/staging/media/sn9c102/sn9c102_hv7131d.c +11 -11
@@ -23,7 +23,7 @@#include "sn9c102_devtable.h" -static int hv7131d_init (struct sn9c102_device * cam) +static int hv7131d_init (struct sn9c102_device *cam) {int err;
@@ -39,8 +39,8 @@ static int hv7131d_init(struct sn9c102_device* cam) } -static int hv7131d_get_ctrl (struct sn9c102_device * cam, -struct v4l2_control * ctrl) +static int hv7131d_get_ctrl (struct sn9c102_device *cam, +struct v4l2_control *ctrl) {switch (ctrl->id) {case V4L2_CID_EXPOSURE :
@@ -88,8 +88,8 @@ static int hv7131d_get_ctrl(struct sn9c102_device* cam, } -static int hv7131d_set_ctrl (struct sn9c102_device * cam, -const struct v4l2_control * ctrl) +static int hv7131d_set_ctrl (struct sn9c102_device *cam, +const struct v4l2_control *ctrl) {int err =0 ;
@@ -121,10 +121,10 @@ static int hv7131d_set_ctrl(struct sn9c102_device* cam, } -static int hv7131d_set_crop (struct sn9c102_device * cam, -const struct v4l2_rect * rect) +static int hv7131d_set_crop (struct sn9c102_device *cam, +const struct v4l2_rect *rect) { -struct sn9c102_sensor * s =sn9c102_get_sensor (cam); +struct sn9c102_sensor *s =sn9c102_get_sensor (cam);int err =0 ;u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) +2 , v_start = (u8)(rect->top - s->cropcap.bounds.top) +2 ;
@@ -136,8 +136,8 @@ static int hv7131d_set_crop(struct sn9c102_device* cam, } -static int hv7131d_set_pix_format (struct sn9c102_device * cam, -const struct v4l2_pix_format * pix) +static int hv7131d_set_pix_format (struct sn9c102_device *cam, +const struct v4l2_pix_format *pix) {int err =0 ;
@@ -248,7 +248,7 @@ static const struct sn9c102_sensor hv7131d = { }; -int sn9c102_probe_hv7131d (struct sn9c102_device * cam) +int sn9c102_probe_hv7131d (struct sn9c102_device *cam) {int r0 =0 , r1 =0 , err;
Signature · 1 line
1.8.3.2