|
@@ -1109,7 +1109,7 @@ static int ov7670_enum_framesizes(struct v4l2_subdev *sd,
|
|
* windows that fall outside that.
|
|
* windows that fall outside that.
|
|
*/
|
|
*/
|
|
for (i = 0; i < n_win_sizes; i++) {
|
|
for (i = 0; i < n_win_sizes; i++) {
|
|
- struct ov7670_win_size *win = &info->devtype->win_sizes[index];
|
|
|
|
|
|
+ struct ov7670_win_size *win = &info->devtype->win_sizes[i];
|
|
if (info->min_width && win->width < info->min_width)
|
|
if (info->min_width && win->width < info->min_width)
|
|
continue;
|
|
continue;
|
|
if (info->min_height && win->height < info->min_height)
|
|
if (info->min_height && win->height < info->min_height)
|