summaryrefslogtreecommitdiff
path: root/drivers/media/platform/imx8
diff options
context:
space:
mode:
authorGuoniu.Zhou <guoniu.zhou@nxp.com>2018-02-05 16:50:08 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit9ccb42a5dd91dea64f01bf6c39a9225c337d9a1a (patch)
tree08a9ad24b3c55f05ae9c6d2cf84342ea719b2d01 /drivers/media/platform/imx8
parent79dfaf847bee69602ac01ecd22302a470eb64982 (diff)
MLK-17230-9: max9286: delete redundant 15fps support
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)
Diffstat (limited to 'drivers/media/platform/imx8')
-rw-r--r--drivers/media/platform/imx8/max9286.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/platform/imx8/max9286.c b/drivers/media/platform/imx8/max9286.c
index 73841a8ce8eb..4c929cd6f6f2 100644
--- a/drivers/media/platform/imx8/max9286.c
+++ b/drivers/media/platform/imx8/max9286.c
@@ -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;
}