MLK-17230-9: max9286: delete redundant 15fps support
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Mon, 5 Feb 2018 08:50:08 +0000 (16:50 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Delete redundant 15fps statements because max9286 does not
support.

Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 88089e8a6dd5f0d06c7c61562f5a1942840f23e3)

drivers/media/platform/imx8/max9286.c

index 73841a8..4c929cd 100644 (file)
@@ -48,7 +48,6 @@ struct reg_value {
 };
 
 enum ov10635_frame_rate {
-       OV10635_15_FPS,
        OV10635_30_FPS,
 };
 
@@ -2581,12 +2580,11 @@ static int max9286_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *a)
                tgt_fps = timeperframe->denominator /
                          timeperframe->numerator;
 
-               if (tgt_fps == 15)
-                       frame_rate = OV10635_15_FPS;
-               else if (tgt_fps == 30)
+               if (tgt_fps ==  30)
                        frame_rate = OV10635_30_FPS;
-               else {
-                       pr_err(" The camera frame rate is not supported!\n");
+
+               if (frame_rate != OV10635_30_FPS) {
+                       pr_err(" The camera %d frame rate is not supported!\n", frame_rate);
                        return -EINVAL;
                }