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)
};
enum ov10635_frame_rate {
- OV10635_15_FPS,
OV10635_30_FPS,
};
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;
}