]> git.neil.brown.name Git - history.git/commitdiff
PPC32: update some initializers to the standard format, from Rusty.
authorPaul Mackerras <paulus@samba.org>
Thu, 5 Sep 2002 06:38:42 +0000 (16:38 +1000)
committerPaul Mackerras <paulus@au1.ibm.com>
Thu, 5 Sep 2002 06:38:42 +0000 (16:38 +1000)
13 files changed:
arch/ppc/4xx_io/serial_sicc.c
arch/ppc/8260_io/uart.c
arch/ppc/8xx_io/cs4218_tdm.c
arch/ppc/8xx_io/uart.c
arch/ppc/amiga/config.c
arch/ppc/iSeries/LparData.c
arch/ppc/iSeries/rtc.c
arch/ppc/kernel/ppc4xx_serial.c
arch/ppc/kernel/ppc_htab.c
arch/ppc/kernel/setup.c
arch/ppc/platforms/apus_setup.c
arch/ppc/platforms/proc_rtas.c
arch/ppc/xmon/start.c

index 863dbfabc451fd8162886297d108d6104c31dbb7..b1d499e965a092a7e7fa1b656f4c901bd29a2010 100644 (file)
@@ -343,13 +343,13 @@ static void sicc_set_mctrl_null(struct SICC_port *port, u_int mctrl)
 
 static struct SICC_port sicc_ports[SERIAL_SICC_NR] = {
     {
-        uart_base:  0,
-        uart_base_phys:  SICC0_IO_BASE,
-        irqrx:      SICC0_INTRX,
-        irqtx:      SICC0_INTTX,
-//      uartclk:    0,
-        fifosize:   1,
-        set_mctrl:  sicc_set_mctrl_null,
+        .uart_base = 0,
+        .uart_base_phys = SICC0_IO_BASE,
+        .irqrx =    SICC0_INTRX,
+        .irqtx =    SICC0_INTTX,
+//      .uartclk =    0,
+        .fifosize = 1,
+        .set_mctrl = sicc_set_mctrl_null,
     }
 };
 
@@ -2113,16 +2113,16 @@ static int __init siccuart_console_setup(struct console *co, char *options)
 
 static struct console siccuart_cons =
 {
-    name:       SERIAL_SICC_NAME,
-    write:      siccuart_console_write,
+    .name =     SERIAL_SICC_NAME,
+    .write =    siccuart_console_write,
 #ifdef used_and_not_const_char_pointer
-    read:       siccuart_console_read,
+    .read =     siccuart_console_read,
 #endif
-    device:     siccuart_console_device,
-    wait_key:   siccuart_console_wait_key,
-    setup:      siccuart_console_setup,
-    flags:      CON_PRINTBUFFER,
-    index:      -1,
+    .device =   siccuart_console_device,
+    .wait_key = siccuart_console_wait_key,
+    .setup =    siccuart_console_setup,
+    .flags =    CON_PRINTBUFFER,
+    .index =    -1,
 };
 
 void __init sicc_console_init(void)
index 40a7e5ea6d0e589d76a0b04b04c18cd5523c29e2..fab0ea8f1ceecf20f41627999257f556232f31d7 100644 (file)
@@ -2463,12 +2463,12 @@ static kdev_t serial_console_device(struct console *c)
 
 
 static struct console sercons = {
-       name:           "ttyS",
-       write:          serial_console_write,
-       device:         serial_console_device,
-       setup:          serial_console_setup,
-       flags:          CON_PRINTBUFFER,
-       index:          CONFIG_SERIAL_CONSOLE_PORT,
+       .name =         "ttyS",
+       .write =        serial_console_write,
+       .device =       serial_console_device,
+       .setup =        serial_console_setup,
+       .flags =        CON_PRINTBUFFER,
+       .index =        CONFIG_SERIAL_CONSOLE_PORT,
 };
 
 /*
index 6b025c201bae9c756f5b1dabef31b785177a70a0..fda0b9fcb06d54857b388f08510945246db11410 100644 (file)
@@ -1376,7 +1376,7 @@ static void cs_nosound(unsigned long xx)
 }
 
 static struct timer_list beep_timer = {
-       function: cs_nosound
+       .function = cs_nosound
 };
 
 static void cs_mksound(unsigned int hz, unsigned int ticks)
@@ -1468,21 +1468,21 @@ static void CS_release(void)
 }
 
 static MACHINE mach_cs4218 = {
-       name:           "HIOX CS4218",
-       name2:          "Built-in Sound",
-       open:           CS_open,
-       release:        CS_release,
-       dma_alloc:      CS_Alloc,
-       dma_free:       CS_Free,
-       irqinit:        CS_IrqInit,
+       .name =         "HIOX CS4218",
+       .name2 =        "Built-in Sound",
+       .open =         CS_open,
+       .release =      CS_release,
+       .dma_alloc =    CS_Alloc,
+       .dma_free =     CS_Free,
+       .irqinit =      CS_IrqInit,
 #ifdef MODULE
-       irqcleanup:     CS_IrqCleanup,
+       .irqcleanup =   CS_IrqCleanup,
 #endif /* MODULE */
-       init:           CS_Init,
-       silence:        CS_Silence,
-       setFormat:      CS_SetFormat,
-       setVolume:      CS_SetVolume,
-       play:           CS_Play
+       .init =         CS_Init,
+       .silence =      CS_Silence,
+       .setFormat =    CS_SetFormat,
+       .setVolume =    CS_SetVolume,
+       .play =         CS_Play
 };
 
 
@@ -1724,11 +1724,11 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
 
 static struct file_operations mixer_fops =
 {
-       owner:          THIS_MODULE,
-       llseek:         sound_lseek,
-       ioctl:          mixer_ioctl,
-       open:           mixer_open,
-       release:        mixer_release,
+       .owner =        THIS_MODULE,
+       .llseek =       sound_lseek,
+       .ioctl =        mixer_ioctl,
+       .open =         mixer_open,
+       .release =      mixer_release,
 };
 
 
@@ -2314,13 +2314,13 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
 
 static struct file_operations sq_fops =
 {
-       owner:          THIS_MODULE,
-       llseek:         sound_lseek,
-       read:           sq_read,                        /* sq_read */
-       write:          sq_write,
-       ioctl:          sq_ioctl,
-       open:           sq_open,
-       release:        sq_release,
+       .owner =        THIS_MODULE,
+       .llseek =       sound_lseek,
+       .read =         sq_read,                        /* sq_read */
+       .write =        sq_write,
+       .ioctl =        sq_ioctl,
+       .open =         sq_open,
+       .release =      sq_release,
 };
 
 
@@ -2451,11 +2451,11 @@ static ssize_t state_read(struct file *file, char *buf, size_t count,
 
 static struct file_operations state_fops =
 {
-       owner:          THIS_MODULE,
-       llseek:         sound_lseek,
-       read:           state_read,
-       open:           state_open,
-       release:        state_release,
+       .owner =        THIS_MODULE,
+       .llseek =       sound_lseek,
+       .read =         state_read,
+       .open =         state_open,
+       .release =      state_release,
 };
 
 
index 25dff6c76039b3c2dad30e93780860739d5779ee..b95d60d35885097a6ffda95904fb0b334b791388 100644 (file)
@@ -224,12 +224,12 @@ typedef struct serial_info {
 } ser_info_t;
 
 static struct console sercons = {
-       name:           "ttyS",
-       write:          serial_console_write,
-       device:         serial_console_device,
-       setup:          serial_console_setup,
-       flags:          CON_PRINTBUFFER,
-       index:          CONFIG_SERIAL_CONSOLE_PORT,
+       .name =         "ttyS",
+       .write =        serial_console_write,
+       .device =       serial_console_device,
+       .setup =        serial_console_setup,
+       .flags =        CON_PRINTBUFFER,
+       .index =        CONFIG_SERIAL_CONSOLE_PORT,
 };
 
 static void change_speed(ser_info_t *info);
index 59bf5d52bbd5988299a9bf2104a0969ef1d8fea9..92e09a2b10e4d429b0d9e3aa645476774fee0039 100644 (file)
@@ -109,9 +109,9 @@ static void amiga_heartbeat(int on);
 #endif
 
 static struct console amiga_console_driver = {
-       name:           "debug",
-       flags:          CON_PRINTBUFFER,
-       index:          -1,
+       .name =         "debug",
+       .flags =        CON_PRINTBUFFER,
+       .index =        -1,
 };
 
 
@@ -123,10 +123,10 @@ static struct {
     struct resource _ciab, _ciaa, _custom, _kickstart;
 } mb_resources = {
 //    { "Ranger Memory", 0x00c00000, 0x00c7ffff },
-    _ciab:     { "CIA B", 0x00bfd000, 0x00bfdfff },
-    _ciaa:     { "CIA A", 0x00bfe000, 0x00bfefff },
-    _custom:   { "Custom I/O", 0x00dff000, 0x00dfffff },
-    _kickstart:        { "Kickstart ROM", 0x00f80000, 0x00ffffff }
+    ._ciab =     { "CIA B", 0x00bfd000, 0x00bfdfff },
+    ._ciaa =     { "CIA A", 0x00bfe000, 0x00bfefff },
+    ._custom =   { "Custom I/O", 0x00dff000, 0x00dfffff },
+    ._kickstart = { "Kickstart ROM", 0x00f80000, 0x00ffffff }
 };
 
 static struct resource rtc_resource = {
index 9d0b78ad83331111c251260ab357c7b30dd9ed12..1cc09f67d1c0373986677e32fa17d0ac3dfbada5 100644 (file)
@@ -59,21 +59,21 @@ unsigned maxPacas = maxProcessors * 2;
 // 8192 indicates to map 8192 pages (32 MB) of the load area.
 
 struct LparMap xLparMap = {    
-               xNumberEsids:   4,              // Number ESID/VSID pairs
-               xNumberRanges:  1,              // Number of memory ranges
-               xSegmentTableOffs:  0,          // Segment Table Page (unused)
-               xKernelEsidC:   0xC,            // ESID to map
-               xKernelVsidC:   0xCCC,          // VSID to map
-               xKernelEsidD:   0xD,            // ESID to map
-               xKernelVsidD:   0xDDD,          // VSID to map
-               xKernelEsidE:   0xE,            // ESID to map
-               xKernelVsidE:   0xEEE,          // VSID to map
-               xKernelEsidF:   0xF,            // ESID to map
-               xKernelVsidF:   0xFFF,          // VSID to map
+               .xNumberEsids =4,               // Number ESID/VSID pairs
+               .xNumberRanges =1,              // Number of memory ranges
+               .xSegmentTableOffs =0,          // Segment Table Page (unused)
+               .xKernelEsidC =0xC,             // ESID to map
+               .xKernelVsidC =0xCCC,           // VSID to map
+               .xKernelEsidD =0xD,             // ESID to map
+               .xKernelVsidD =0xDDD,           // VSID to map
+               .xKernelEsidE =0xE,             // ESID to map
+               .xKernelVsidE =0xEEE,           // VSID to map
+               .xKernelEsidF =0xF,             // ESID to map
+               .xKernelVsidF =0xFFF,           // VSID to map
 
-               xPages:         HvPagesToMap,   // # of pages to map (8192)
-               xOffset:        0,              // Offset into load area
-               xVPN:           0xCCC0000       // VPN of first mapped page
+               .xPages =               HvPagesToMap,   // # of pages to map (8192)
+               .xOffset =      0,              // Offset into load area
+               .xVPN = 0xCCC0000       // VPN of first mapped page
 };                                     
 
 // The Naca has a pointer to the ItVpdAreas.  The hypervisor finds
@@ -119,11 +119,11 @@ struct ItLpQueue xItLpQueue = {};
          (lpq),                \
          0, 0, {0},            \
          { /* LpPaca */                \
-               xDesc: 0xd397d781, /* "LpPa" */ \
-               xSize: sizeof(struct ItLpPaca), \
-               xFPRegsInUse:   1,              \
-               xDynProcStatus: 2,              \
-               xEndOfQuantum:  0xffffffffffffffff      \
+               .xDesc = 0xd397d781, /* "LpPa" */       \
+               .xSize = sizeof(struct ItLpPaca),       \
+               .xFPRegsInUse =1,               \
+               .xDynProcStatus = 2,            \
+               .xEndOfQuantum =0xffffffffffffffff      \
          },                    \
          { /* LpRegSave */     \
                0xd397d9e2,     /* "LpRS" */    \
@@ -245,7 +245,7 @@ struct ItIplParmsReal xItIplParmsReal = {};
 
 struct IoHriProcessorVpd xIoHriProcessorVpd[maxProcessors] = {
        { 
-       xTimeBaseFreq: 50000000
+       .xTimeBaseFreq = 50000000
        }
 };
        
index da4a688eddb85e42eb7d5a3e8d711daf69b4d1b7..6626aa8ed4837829d3a5ab73accdf88dcfafea25 100644 (file)
@@ -175,12 +175,12 @@ static int rtc_release(struct inode *inode, struct file *file)
  */
 
 static struct file_operations rtc_fops = {
-       owner:          THIS_MODULE,
-       llseek:         rtc_llseek,
-       read:           rtc_read,
-       ioctl:          rtc_ioctl,
-       open:           rtc_open,
-       release:        rtc_release,
+       .owner =        THIS_MODULE,
+       .llseek =       rtc_llseek,
+       .read =         rtc_read,
+       .ioctl =        rtc_ioctl,
+       .open =         rtc_open,
+       .release =      rtc_release,
 };
 
 static struct miscdevice rtc_dev=
index 54defaf2a92c99688b356a5fd7e5532e61eebf42..852f81197d5deb832c1edd752e45d79e7fc7ee67 100755 (executable)
@@ -166,11 +166,11 @@ ppc405_sercons_read(struct console *co, char *ptr, unsigned nb)
 }
 
 static struct console ppc405_sercons = {
-       name:           "dbg_cons",
-       write:          ppc405_console_write,
-       setup:          ppc405_console_setup,
-       flags:          CON_PRINTBUFFER,
-       index:          -1,
+       .name =         "dbg_cons",
+       .write =        ppc405_console_write,
+       .setup =        ppc405_console_setup,
+       .flags =        CON_PRINTBUFFER,
+       .index =        -1,
 };
 
 void
index 61a8da7856dc27810350efb434f51b14789ff21e..f3e6850cc0816a50edf231bf0e5bdedd2f121d1e 100644 (file)
@@ -66,9 +66,9 @@ extern unsigned int htab_hash_searches;
 #define PMC2 954
 
 struct file_operations ppc_htab_operations = {
-        llseek:         ppc_htab_lseek,
-        read:           ppc_htab_read,
-        write:          ppc_htab_write,
+        .llseek =       ppc_htab_lseek,
+        .read =         ppc_htab_read,
+        .write =        ppc_htab_write,
 };
 
 static char *pmc1_lookup(unsigned long mmcr0)
index a397ae31150af18f61fce1cafcb7225e22238da2..4add451ea75df73c884f566ebe157ea8545b9b9f 100644 (file)
@@ -250,10 +250,10 @@ static void c_stop(struct seq_file *m, void *v)
 }
 
 struct seq_operations cpuinfo_op = {
-       start:  c_start,
-       next:   c_next,
-       stop:   c_stop,
-       show:   show_cpuinfo,
+       .start =c_start,
+       .next = c_next,
+       .stop = c_stop,
+       .show = show_cpuinfo,
 };
 
 /*
index ac452f9af536c98b16e7ae2b30f53992baf2d218..30d1bd9c00f435431137ce5c35ebd2fe8ccf8635 100644 (file)
@@ -667,14 +667,14 @@ extern void amiga_enable_irq(unsigned int irq);
 extern void amiga_disable_irq(unsigned int irq);
 
 struct hw_interrupt_type amiga_sys_irqctrl = {
-       typename: "Amiga IPL",
-       end: apus_end_irq,
+       .typename = "Amiga IPL",
+       .end = apus_end_irq,
 };
 
 struct hw_interrupt_type amiga_irqctrl = {
-       typename: "Amiga    ",
-       enable: amiga_enable_irq,
-       disable: amiga_disable_irq,
+       .typename = "Amiga    ",
+       .enable = amiga_enable_irq,
+       .disable = amiga_disable_irq,
 };
 
 #define HARDWARE_MAPPED_SIZE (512*1024)
index b893044fdb5d6f07b44e467888a6748bfc3dbc0d..5e95ad2e71b870fc763a0f247ef05846904af137 100644 (file)
@@ -164,26 +164,26 @@ static ssize_t ppc_rtas_tone_volume_read(struct file * file, char * buf,
                size_t count, loff_t *ppos);
 
 struct file_operations ppc_rtas_poweron_operations = {
-       read:           ppc_rtas_poweron_read,
-       write:          ppc_rtas_poweron_write
+       .read =         ppc_rtas_poweron_read,
+       .write =        ppc_rtas_poweron_write
 };
 struct file_operations ppc_rtas_progress_operations = {
-       read:           ppc_rtas_progress_read,
-       write:          ppc_rtas_progress_write
+       .read =         ppc_rtas_progress_read,
+       .write =        ppc_rtas_progress_write
 };
 
 struct file_operations ppc_rtas_clock_operations = {
-       read:           ppc_rtas_clock_read,
-       write:          ppc_rtas_clock_write
+       .read =         ppc_rtas_clock_read,
+       .write =        ppc_rtas_clock_write
 };
 
 struct file_operations ppc_rtas_tone_freq_operations = {
-       read:           ppc_rtas_tone_freq_read,
-       write:          ppc_rtas_tone_freq_write
+       .read =         ppc_rtas_tone_freq_read,
+       .write =        ppc_rtas_tone_freq_write
 };
 struct file_operations ppc_rtas_tone_volume_operations = {
-       read:           ppc_rtas_tone_volume_read,
-       write:          ppc_rtas_tone_volume_write
+       .read =         ppc_rtas_tone_volume_read,
+       .write =        ppc_rtas_tone_volume_write
 };
 
 int ppc_rtas_find_all_sensors (void);
index a9e26ee770582a69922ee430fb96a9980d37c9ee..aa33c5b1c79e3d15ba50f775577e73013b15f0f6 100644 (file)
@@ -105,9 +105,9 @@ static void sysrq_handle_xmon(int key, struct pt_regs *regs,
 
 static struct sysrq_key_op sysrq_xmon_op = 
 {
-       handler:        sysrq_handle_xmon,
-       help_msg:       "Xmon",
-       action_msg:     "Entering xmon\n",
+       .handler =      sysrq_handle_xmon,
+       .help_msg =     "Xmon",
+       .action_msg =   "Entering xmon\n",
 };
 #endif