# HG changeset patch # User Paul Boddie # Date 1498602014 -7200 # Node ID 95be7694d99945d06e117d8e34e88ba2ffbb2bdb # Parent 1f51b3efd042851c72144c57e4492139accbb133 Employ structure member names to make initialisation clearer. diff -r 1f51b3efd042 -r 95be7694d999 stage2/nanonote_gpm940b0.c --- a/stage2/nanonote_gpm940b0.c Mon Oct 03 22:25:47 2016 +0200 +++ b/stage2/nanonote_gpm940b0.c Wed Jun 28 00:20:14 2017 +0200 @@ -2,7 +2,7 @@ * Ben NanoNote screen details * * Copyright (C) Xiangfu Liu - * Copyright (C) 2015, 2016 Paul Boddie + * Copyright (C) 2015, 2016, 2017 Paul Boddie * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -25,8 +25,13 @@ #include "nanonote.h" struct jzfb_info jzfb = { - MODE_8BIT_SERIAL_TFT | PCLK_N | HSYNC_N | VSYNC_N, - 320, 240, 32, 70, 1, 1, 273, 140, 1, 20 + .cfg=MODE_8BIT_SERIAL_TFT | PCLK_N | HSYNC_N | VSYNC_N, + .w=320, .h=240, /* dimensions */ + .bpp=32, /* bits per pixel */ + .fclk=70, /* frame clock rate */ + .hsw=1, .vsw=1, /* sync widths */ + .elw=273, .blw=140, /* line limits */ + .efw=1, .bfw=20 /* frame limits */ }; vidinfo_t panel_info = {