|
@@ -335,8 +335,8 @@ static void ov9640_res_roundup(u32 *width, u32 *height)
|
|
|
{
|
|
|
int i;
|
|
|
enum { QQCIF, QQVGA, QCIF, QVGA, CIF, VGA, SXGA };
|
|
|
- int res_x[] = { 88, 160, 176, 320, 352, 640, 1280 };
|
|
|
- int res_y[] = { 72, 120, 144, 240, 288, 480, 960 };
|
|
|
+ static const int res_x[] = { 88, 160, 176, 320, 352, 640, 1280 };
|
|
|
+ static const int res_y[] = { 72, 120, 144, 240, 288, 480, 960 };
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(res_x); i++) {
|
|
|
if (res_x[i] >= *width && res_y[i] >= *height) {
|