Commit 58364c50 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: make function calls cleaner

The #ifs inside the code makes confusing for reviewers and also
cause problems with smatch:
	drivers/staging/media/atomisp/pci/atomisp2/atomisp_ioctl.c:2937:1: error: directive in argument list
	drivers/staging/media/atomisp/pci/atomisp2/atomisp_ioctl.c:2939:1: error: directive in argument list
	drivers/staging/media/atomisp/pci/atomisp2/atomisp_ioctl.c:2941:1: error: directive in argument list
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@iki.fi>
parent 4c5133f5
...@@ -2933,13 +2933,15 @@ static long atomisp_vidioc_default(struct file *file, void *fh, ...@@ -2933,13 +2933,15 @@ static long atomisp_vidioc_default(struct file *file, void *fh,
#else #else
if (isp->motor) if (isp->motor)
#endif #endif
err = v4l2_subdev_call(
#ifndef ISP2401 #ifndef ISP2401
err = v4l2_subdev_call(
isp->inputs[asd->input_curr].motor, isp->inputs[asd->input_curr].motor,
core, ioctl, cmd, arg);
#else #else
err = v4l2_subdev_call(
isp->motor, isp->motor,
#endif
core, ioctl, cmd, arg); core, ioctl, cmd, arg);
#endif
else else
err = v4l2_subdev_call( err = v4l2_subdev_call(
isp->inputs[asd->input_curr].camera, isp->inputs[asd->input_curr].camera,
......
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