From 6e35750021aba576485fd86e53e1fb1c1895dd4e Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Mon, 25 Nov 2002 02:40:22 -0800 Subject: [PATCH] [PATCH] named struct initialiser updates --- drivers/message/i2o/i2o_scsi.c | 13 ++++--------- drivers/video/fbcon.c | 5 +++-- fs/file_table.c | 4 +++- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/message/i2o/i2o_scsi.c b/drivers/message/i2o/i2o_scsi.c index 7d47996701b3..030979bbdd24 100644 --- a/drivers/message/i2o/i2o_scsi.c +++ b/drivers/message/i2o/i2o_scsi.c @@ -336,15 +336,10 @@ static void i2o_scsi_reply(struct i2o_handler *h, struct i2o_controller *c, stru return; } -struct i2o_handler i2o_scsi_handler= -{ - i2o_scsi_reply, - NULL, - NULL, - NULL, - "I2O SCSI OSM", - 0, - I2O_CLASS_SCSI_PERIPHERAL +struct i2o_handler i2o_scsi_handler = { + .reply = i2o_scsi_reply, + .name = "I2O SCSI OSM", + .class = I2O_CLASS_SCSI_PERIPHERAL, }; /** diff --git a/drivers/video/fbcon.c b/drivers/video/fbcon.c index 69374876d64f..0b0db4edcfa0 100644 --- a/drivers/video/fbcon.c +++ b/drivers/video/fbcon.c @@ -230,8 +230,9 @@ static void fbcon_vbl_detect(int irq, void *dummy, struct pt_regs *fp) static void cursor_timer_handler(unsigned long dev_addr); -static struct timer_list cursor_timer = - TIMER_INITIALIZER(cursor_timer_handler, 0, 0); +static struct timer_list cursor_timer = { + function: cursor_timer_handler +}; static void cursor_timer_handler(unsigned long dev_addr) { diff --git a/fs/file_table.c b/fs/file_table.c index 65e00ff7708a..ca55e9de1029 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -18,7 +18,9 @@ /* sysctl tunables... */ -struct files_stat_struct files_stat = {0, 0, NR_FILE}; +struct files_stat_struct files_stat = { + .max_files = NR_FILE +}; /* Here the new files go */ static LIST_HEAD(anon_list); -- 2.39.5