@@ -165,7 +165,7 @@ static struct mt9m114_reg mt9m114_1280_720[] = {
165
165
{MT9M114_CAM_STAT_AE_INITIAL_WINDOW_YEND , 2 , 0x008F }, /* 143 */
166
166
{/* NULL terminated */ }};
167
167
168
- static struct mt9m114_resolution_config resolutionConfigs [] = {
168
+ static struct mt9m114_resolution_config resolution_configs [] = {
169
169
{.width = 480 , .height = 272 , .params = mt9m114_480_272 },
170
170
{.width = 640 , .height = 480 , .params = mt9m114_640_480 },
171
171
{.width = 1280 , .height = 720 , .params = mt9m114_1280_720 },
@@ -424,10 +424,10 @@ static int mt9m114_set_fmt(const struct device *dev, enum video_endpoint_id ep,
424
424
}
425
425
426
426
/* Set output resolution */
427
- for (i = 0 ; i < ARRAY_SIZE (resolutionConfigs ); i ++ ) {
428
- if (fmt -> width == resolutionConfigs [i ].width &&
429
- fmt -> height == resolutionConfigs [i ].height ) {
430
- ret = mt9m114_write_all (dev , resolutionConfigs [i ].params );
427
+ for (i = 0 ; i < ARRAY_SIZE (resolution_configs ); i ++ ) {
428
+ if (fmt -> width == resolution_configs [i ].width &&
429
+ fmt -> height == resolution_configs [i ].height ) {
430
+ ret = mt9m114_write_all (dev , resolution_configs [i ].params );
431
431
if (ret ) {
432
432
LOG_ERR ("Unable to set resolution" );
433
433
return ret ;
0 commit comments