]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] named struct initialiser updates
authorDave Jones <davej@codemonkey.org.uk>
Mon, 25 Nov 2002 10:40:22 +0000 (02:40 -0800)
committerDave Jones <davej@codemonkey.org.uk>
Mon, 25 Nov 2002 10:40:22 +0000 (02:40 -0800)
drivers/message/i2o/i2o_scsi.c
drivers/video/fbcon.c
fs/file_table.c

index 7d47996701b3bba37245cd0ea21313a502665fd6..030979bbdd24ae6ce4cd0322b6c38d84b0de1412 100644 (file)
@@ -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,
 };
 
 /**
index 69374876d64fe337ff8f666aed665f99c0c889ed..0b0db4edcfa089e18241169b4d111a3f8c9c1112 100644 (file)
@@ -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)
 {
index 65e00ff7708a48aacb0af145730175bc77fd9bf6..ca55e9de10294d1e43971a9ecae5eb9a0f9e6f73 100644 (file)
@@ -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);