File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1211,7 +1211,12 @@ static int gc2145_init_controls(const struct device *dev)
12111211
12121212static int gc2145_init (const struct device * dev )
12131213{
1214- struct video_format fmt ;
1214+ /* set default/init format VGA RGB565 */
1215+ struct video_format fmt = {
1216+ .pixelformat = VIDEO_PIX_FMT_RGB565 ,
1217+ .width = RESOLUTION_VGA_W ,
1218+ .height = RESOLUTION_VGA_H ,
1219+ };
12151220 int ret ;
12161221 const struct gc2145_config * cfg = dev -> config ;
12171222 (void ) cfg ;
@@ -1250,11 +1255,6 @@ static int gc2145_init(const struct device *dev)
12501255 return ret ;
12511256 }
12521257
1253- /* set default/init format VGA RGB565 */
1254- fmt .pixelformat = VIDEO_PIX_FMT_RGB565 ;
1255- fmt .width = RESOLUTION_VGA_W ;
1256- fmt .height = RESOLUTION_VGA_H ;
1257-
12581258 ret = gc2145_set_fmt (dev , & fmt );
12591259 if (ret ) {
12601260 LOG_ERR ("Unable to configure default format" );
You can’t perform that action at this time.
0 commit comments