[PATCH] [TRIVIAL] ppc64: switch screen_info init to C99
Olof Johansson
olof at austin.ibm.com
Wed Aug 18 04:55:00 EST 2004
Hi,
Minor cleanup: Use C99 initializers for the screen_info struct.
Signed-off-by: Olof Johansson <olof at austin.ibm.com>
---
linux-2.5-olof/arch/ppc64/kernel/setup.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff -puN arch/ppc64/kernel/setup.c~c99-screen-info arch/ppc64/kernel/setup.c
--- linux-2.5/arch/ppc64/kernel/setup.c~c99-screen-info 2004-08-17 11:45:51.900939936 -0500
+++ linux-2.5-olof/arch/ppc64/kernel/setup.c 2004-08-17 11:45:51.905939176 -0500
@@ -112,15 +112,12 @@ static struct notifier_block ppc64_panic
* these processors use on existing boards. -- Dan
*/
struct screen_info screen_info = {
- 0, 25, /* orig-x, orig-y */
- 0, /* unused */
- 0, /* orig-video-page */
- 0, /* orig-video-mode */
- 80, /* orig-video-cols */
- 0,0,0, /* ega_ax, ega_bx, ega_cx */
- 25, /* orig-video-lines */
- 1, /* orig-video-isVGA */
- 16 /* orig-video-points */
+ .orig_x = 0,
+ .orig_y = 25,
+ .orig_video_cols = 80,
+ .orig_video_lines = 25,
+ .orig_video_isVGA = 1,
+ .orig_video_points = 16
};
/*
_
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list