Skip to content

Commit 46bf6b5

Browse files
0xFarahFlkartben
authored andcommitted
drivers: video: mt9m114: Fix coding style
Fix coding style in a variable naming. Signed-off-by: Farah Fliss <farah.fliss@nxp.com> Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
1 parent c94bcb8 commit 46bf6b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/video/mt9m114.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static struct mt9m114_reg mt9m114_1280_720[] = {
174174
{MT9M114_CAM_STAT_AE_INITIAL_WINDOW_YEND, 2, 0x008F}, /* 143 */
175175
{/* NULL terminated */}};
176176

177-
static struct mt9m114_resolution_config resolutionConfigs[] = {
177+
static struct mt9m114_resolution_config resolution_configs[] = {
178178
{.width = 480, .height = 272, .params = mt9m114_480_272},
179179
{.width = 640, .height = 480, .params = mt9m114_640_480},
180180
{.width = 1280, .height = 720, .params = mt9m114_1280_720},
@@ -432,10 +432,10 @@ static int mt9m114_set_fmt(const struct device *dev, struct video_format *fmt)
432432
}
433433

434434
/* Set output resolution */
435-
for (i = 0; i < ARRAY_SIZE(resolutionConfigs); i++) {
436-
if (fmt->width == resolutionConfigs[i].width &&
437-
fmt->height == resolutionConfigs[i].height) {
438-
ret = mt9m114_write_all(dev, resolutionConfigs[i].params);
435+
for (i = 0; i < ARRAY_SIZE(resolution_configs); i++) {
436+
if (fmt->width == resolution_configs[i].width &&
437+
fmt->height == resolution_configs[i].height) {
438+
ret = mt9m114_write_all(dev, resolution_configs[i].params);
439439
if (ret) {
440440
LOG_ERR("Unable to set resolution");
441441
return ret;

0 commit comments

Comments
 (0)