@@ -174,7 +174,7 @@ static struct mt9m114_reg mt9m114_1280_720[] = {
174
174
{MT9M114_CAM_STAT_AE_INITIAL_WINDOW_YEND , 2 , 0x008F }, /* 143 */
175
175
{/* NULL terminated */ }};
176
176
177
- static struct mt9m114_resolution_config resolutionConfigs [] = {
177
+ static struct mt9m114_resolution_config resolution_configs [] = {
178
178
{.width = 480 , .height = 272 , .params = mt9m114_480_272 },
179
179
{.width = 640 , .height = 480 , .params = mt9m114_640_480 },
180
180
{.width = 1280 , .height = 720 , .params = mt9m114_1280_720 },
@@ -433,10 +433,10 @@ static int mt9m114_set_fmt(const struct device *dev, enum video_endpoint_id ep,
433
433
}
434
434
435
435
/* Set output resolution */
436
- for (i = 0 ; i < ARRAY_SIZE (resolutionConfigs ); i ++ ) {
437
- if (fmt -> width == resolutionConfigs [i ].width &&
438
- fmt -> height == resolutionConfigs [i ].height ) {
439
- ret = mt9m114_write_all (dev , resolutionConfigs [i ].params );
436
+ for (i = 0 ; i < ARRAY_SIZE (resolution_configs ); i ++ ) {
437
+ if (fmt -> width == resolution_configs [i ].width &&
438
+ fmt -> height == resolution_configs [i ].height ) {
439
+ ret = mt9m114_write_all (dev , resolution_configs [i ].params );
440
440
if (ret ) {
441
441
LOG_ERR ("Unable to set resolution" );
442
442
return ret ;
0 commit comments