File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -482,8 +482,6 @@ static const struct ov2640_reg uxga_regs[] = {
482
482
{R_DVP_SP , R_DVP_SP_AUTO_MODE | 0x04 },
483
483
484
484
{R_BYPASS , R_BYPASS_DSP_EN },
485
- /* Keep reset asserted as zoom config is coming next */
486
- /* { RESET, 0x00 }, */
487
485
{0 , 0 },
488
486
};
489
487
@@ -858,9 +856,7 @@ static int ov2640_set_vertical_flip(const struct device *dev, int enable)
858
856
859
857
static const struct ov2640_win_size * ov2640_select_win (uint32_t width , uint32_t height )
860
858
{
861
- int i ;
862
-
863
- for (i = 0 ; i < ARRAY_SIZE (ov2640_supported_win_sizes ); i ++ ) {
859
+ for (int i = 0 ; i < ARRAY_SIZE (ov2640_supported_win_sizes ); i ++ ) {
864
860
if (ov2640_supported_win_sizes [i ].width >= width &&
865
861
ov2640_supported_win_sizes [i ].height >= height ) {
866
862
return & ov2640_supported_win_sizes [i ];
@@ -887,7 +883,7 @@ static int ov2640_set_resolution(const struct device *dev,
887
883
LOG_INF ("Selected resolution %s" , win -> name );
888
884
889
885
/* Write DSP input registers */
890
- ret | = ov2640_write_all (dev , uxga_regs , ARRAY_SIZE (uxga_regs ));
886
+ ret = ov2640_write_all (dev , uxga_regs , ARRAY_SIZE (uxga_regs ));
891
887
if (ret < 0 ) {
892
888
return ret ;
893
889
}
You can’t perform that action at this time.
0 commit comments