lkml.org 
[lkml]   [2003]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 6/10] 2.6.0-t3: struct C99 initialiser conversion
linux/drivers/ patch

--
"How can I not love the Americans? They helped me with a flat tire the
other day," he said.
- http://tinyurl.com/h6fo
diff -aur linux.backup/drivers/char/lcd.c linux/drivers/char/lcd.c
--- linux.backup/drivers/char/lcd.c Mon Jul 21 23:34:54 2003
+++ linux/drivers/char/lcd.c Sat Aug 16 15:45:01 2003
@@ -551,9 +551,9 @@
*/

static struct file_operations lcd_fops = {
- read: lcd_read,
- ioctl: lcd_ioctl,
- open: lcd_open,
+ .read = lcd_read,
+ .ioctl = lcd_ioctl,
+ .open = lcd_open,
};

static struct miscdevice lcd_dev=
diff -aur linux.backup/drivers/i2c/i2c-keywest.c linux/drivers/i2c/i2c-keywest.c
--- linux.backup/drivers/i2c/i2c-keywest.c Sat Aug 16 15:02:44 2003
+++ linux/drivers/i2c/i2c-keywest.c Sat Aug 16 18:15:45 2003
@@ -409,11 +409,11 @@

/* For now, we only handle combined mode (smbus) */
static struct i2c_algorithm keywest_algorithm = {
- name: "Keywest i2c",
- id: I2C_ALGO_SMBUS,
- smbus_xfer: keywest_smbus_xfer,
- master_xfer: keywest_xfer,
- functionality: keywest_func,
+ .name = "Keywest i2c",
+ .id = I2C_ALGO_SMBUS,
+ .smbus_xfer = keywest_smbus_xfer,
+ .master_xfer = keywest_xfer,
+ .functionality = keywest_func,
};


diff -aur linux.backup/drivers/media/common/saa7146_video.c linux/drivers/media/common/saa7146_video.c
--- linux.backup/drivers/media/common/saa7146_video.c Sat Aug 16 15:02:45 2003
+++ linux/drivers/media/common/saa7146_video.c Sat Aug 16 18:16:29 2003
@@ -359,41 +359,41 @@

static struct v4l2_queryctrl controls[] = {
{
- id: V4L2_CID_BRIGHTNESS,
- name: "Brightness",
- minimum: 0,
- maximum: 255,
- step: 1,
- default_value: 128,
- type: V4L2_CTRL_TYPE_INTEGER,
+ .id = V4L2_CID_BRIGHTNESS,
+ .name = "Brightness",
+ .minimum = 0,
+ .maximum = 255,
+ .step = 1,
+ .default_value = 128,
+ .type = V4L2_CTRL_TYPE_INTEGER,
},{
- id: V4L2_CID_CONTRAST,
- name: "Contrast",
- minimum: 0,
- maximum: 127,
- step: 1,
- default_value: 64,
- type: V4L2_CTRL_TYPE_INTEGER,
+ .id = V4L2_CID_CONTRAST,
+ .name = "Contrast",
+ .minimum = 0,
+ .maximum = 127,
+ .step = 1,
+ .default_value = 64,
+ .type = V4L2_CTRL_TYPE_INTEGER,
},{
- id: V4L2_CID_SATURATION,
- name: "Saturation",
- minimum: 0,
- maximum: 127,
- step: 1,
- default_value: 64,
- type: V4L2_CTRL_TYPE_INTEGER,
+ .id = V4L2_CID_SATURATION,
+ .name = "Saturation",
+ .minimum = 0,
+ .maximum = 127,
+ .step = 1,
+ .default_value = 64,
+ .type = V4L2_CTRL_TYPE_INTEGER,
},{
- id: V4L2_CID_VFLIP,
- name: "Vertical flip",
- minimum: 0,
- maximum: 1,
- type: V4L2_CTRL_TYPE_BOOLEAN,
+ .id = V4L2_CID_VFLIP,
+ .name = "Vertical flip",
+ .minimum = 0,
+ .maximum = 1,
+ .type = V4L2_CTRL_TYPE_BOOLEAN,
},{
- id: V4L2_CID_HFLIP,
- name: "Horizontal flip",
- minimum: 0,
- maximum: 1,
- type: V4L2_CTRL_TYPE_BOOLEAN,
+ .id = V4L2_CID_HFLIP,
+ .name = "Horizontal flip",
+ .minimum = 0,
+ .maximum = 1,
+ .type = V4L2_CTRL_TYPE_BOOLEAN,
},
};
static int NUM_CONTROLS = sizeof(controls)/sizeof(struct v4l2_queryctrl);
diff -aur linux.backup/drivers/media/dvb/frontends/grundig_29504-401.c linux/drivers/media/dvb/frontends/grundig_29504-401.c
--- linux.backup/drivers/media/dvb/frontends/grundig_29504-401.c Sat Aug 16 15:02:19 2003
+++ linux/drivers/media/dvb/frontends/grundig_29504-401.c Sun Aug 17 00:37:54 2003
@@ -37,15 +37,15 @@


struct dvb_frontend_info grundig_29504_401_info = {
- name: "Grundig 29504-401",
- type: FE_OFDM,
-/* frequency_min: ???,*/
-/* frequency_max: ???,*/
- frequency_stepsize: 166666,
-/* frequency_tolerance: ???,*/
-/* symbol_rate_tolerance: ???,*/
- notifier_delay: 0,
- caps: FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |
+ .name = "Grundig 29504-401",
+ .type = FE_OFDM,
+/* .frequency_min = ???,*/
+/* .frequency_max = ???,*/
+ .frequency_stepsize = 166666,
+/* .frequency_tolerance = ???,*/
+/* .symbol_rate_tolerance = ???,*/
+ .notifier_delay = 0,
+ .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |
FE_CAN_FEC_5_6 | FE_CAN_FEC_7_8 |
FE_CAN_QPSK | FE_CAN_QAM_16 | FE_CAN_QAM_64 |
FE_CAN_MUTE_TS /*| FE_CAN_CLEAN_SETUP*/
diff -aur linux.backup/drivers/media/dvb/frontends/ves1820.c linux/drivers/media/dvb/frontends/ves1820.c
--- linux.backup/drivers/media/dvb/frontends/ves1820.c Sat Aug 16 15:02:19 2003
+++ linux/drivers/media/dvb/frontends/ves1820.c Sat Aug 16 18:18:40 2003
@@ -81,9 +81,9 @@
.symbol_rate_min = (XIN/2)/64, /* SACLK/64 == (XIN/2)/64 */
.symbol_rate_max = (XIN/2)/4, /* SACLK/4 */
#if 0
- frequency_tolerance: ???,
- symbol_rate_tolerance: ???, /* ppm */ /* == 8% (spec p. 5) */
- notifier_delay: ?,
+ .frequency_tolerance = ???,
+ .symbol_rate_tolerance = ???, /* ppm */ /* == 8% (spec p. 5) */
+ .notifier_delay = ?,
#endif
.caps = FE_CAN_QAM_16 | FE_CAN_QAM_32 | FE_CAN_QAM_64 |
FE_CAN_QAM_128 | FE_CAN_QAM_256 |
diff -aur linux.backup/drivers/media/dvb/ttusb-dec/dec2000_frontend.c linux/drivers/media/dvb/ttusb-dec/dec2000_frontend.c
--- linux.backup/drivers/media/dvb/ttusb-dec/dec2000_frontend.c Sat Aug 16 15:02:20 2003
+++ linux/drivers/media/dvb/ttusb-dec/dec2000_frontend.c Sat Aug 16 18:19:17 2003
@@ -30,12 +30,12 @@
#define dprintk if (debug) printk

static struct dvb_frontend_info dec2000_frontend_info = {
- name: "TechnoTrend/Hauppauge DEC-2000-t Frontend",
- type: FE_OFDM,
- frequency_min: 51000000,
- frequency_max: 858000000,
- frequency_stepsize: 62500,
- caps: FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |
+ .name = "TechnoTrend/Hauppauge DEC-2000-t Frontend",
+ .type = FE_OFDM,
+ .frequency_min = 51000000,
+ .frequency_max = 858000000,
+ .frequency_stepsize = 62500,
+ .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |
FE_CAN_FEC_5_6 | FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO |
FE_CAN_QAM_16 | FE_CAN_QAM_64 | FE_CAN_QAM_AUTO |
FE_CAN_TRANSMISSION_MODE_AUTO | FE_CAN_GUARD_INTERVAL_AUTO |
diff -aur linux.backup/drivers/media/dvb/ttusb-dec/ttusb_dec.c linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
--- linux.backup/drivers/media/dvb/ttusb-dec/ttusb_dec.c Sat Aug 16 15:02:45 2003
+++ linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c Sat Aug 16 15:45:01 2003
@@ -1003,10 +1003,10 @@
};

static struct usb_driver ttusb_dec_driver = {
- name: DRIVER_NAME,
- probe: ttusb_dec_probe,
- disconnect: ttusb_dec_disconnect,
- id_table: ttusb_dec_table,
+ .name = DRIVER_NAME,
+ .probe = ttusb_dec_probe,
+ .disconnect = ttusb_dec_disconnect,
+ .id_table = ttusb_dec_table,
};

static int __init ttusb_dec_init(void)
diff -aur linux.backup/drivers/media/video/bttv-cards.c linux/drivers/media/video/bttv-cards.c
--- linux.backup/drivers/media/video/bttv-cards.c Sat Aug 16 15:02:45 2003
+++ linux/drivers/media/video/bttv-cards.c Sat Aug 16 15:45:00 2003
@@ -1298,7 +1298,7 @@
},{
.name = "Powercolor MTV878/ MTV878R/ MTV878F",
.video_inputs = 3,
- audio_inputs: 2,
+ .audio_inputs = 2,
.tuner = 0,
.svhs = 2,
.gpiomask = 0x1C800F, // Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset
@@ -1338,7 +1338,7 @@
},{
.name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF",
.video_inputs = 4,
- audio_inputs: 3,
+ .audio_inputs = 3,
.tuner = 0,
.svhs = 2,
.gpiomask = 7,
diff -aur linux.backup/drivers/mtd/devices/blkmtd.c linux/drivers/mtd/devices/blkmtd.c
--- linux.backup/drivers/mtd/devices/blkmtd.c Sat Aug 16 15:02:47 2003
+++ linux/drivers/mtd/devices/blkmtd.c Sat Aug 16 15:45:01 2003
@@ -289,8 +289,8 @@


static struct address_space_operations blkmtd_aops = {
- writepage: blkmtd_writepage,
- readpage: NULL,
+ .writepage = blkmtd_writepage,
+ .readpage = NULL,
};


diff -aur linux.backup/drivers/mtd/maps/ceiva.c linux/drivers/mtd/maps/ceiva.c
--- linux.backup/drivers/mtd/maps/ceiva.c Thu Jun 26 23:47:35 2003
+++ linux/drivers/mtd/maps/ceiva.c Sat Aug 16 18:20:47 2003
@@ -64,23 +64,23 @@

static struct mtd_partition ceiva_partitions[] = {
{
- name: "Ceiva BOOT partition",
- size: BOOT_PARTITION_SIZE_KiB*1024,
- offset: 0,
+ .name = "Ceiva BOOT partition",
+ .size = BOOT_PARTITION_SIZE_KiB*1024,
+ .offset = 0,

},{
- name: "Ceiva parameters partition",
- size: PARAMS_PARTITION_SIZE_KiB*1024,
- offset: (16 + 8) * 1024,
+ .name = "Ceiva parameters partition",
+ .size = PARAMS_PARTITION_SIZE_KiB*1024,
+ .offset = (16 + 8) * 1024,
},{
- name: "Ceiva kernel partition",
- size: (KERNEL_PARTITION_SIZE_KiB)*1024,
- offset: 0x20000,
+ .name = "Ceiva kernel partition",
+ .size = (KERNEL_PARTITION_SIZE_KiB)*1024,
+ .offset = 0x20000,

},{
- name: "Ceiva root filesystem partition",
- offset: MTDPART_OFS_APPEND,
- size: (ROOT_PARTITION_SIZE_KiB)*1024,
+ .name = "Ceiva root filesystem partition",
+ .offset = MTDPART_OFS_APPEND,
+ .size = (ROOT_PARTITION_SIZE_KiB)*1024,
}
};
#endif
diff -aur linux.backup/drivers/mtd/nand/autcpu12.c linux/drivers/mtd/nand/autcpu12.c
--- linux.backup/drivers/mtd/nand/autcpu12.c Mon Jul 21 23:34:57 2003
+++ linux/drivers/mtd/nand/autcpu12.c Sat Aug 16 18:23:03 2003
@@ -73,39 +73,39 @@
extern struct nand_oobinfo jffs2_oobinfo;

static struct mtd_partition partition_info16k[] = {
- { name: "AUTCPU12 flash partition 1",
- offset: 0,
- size: 8 * SZ_1M },
- { name: "AUTCPU12 flash partition 2",
- offset: 8 * SZ_1M,
- size: 8 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 1",
+ .offset = 0,
+ .size = 8 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 2",
+ .offset = 8 * SZ_1M,
+ .size = 8 * SZ_1M },
};

static struct mtd_partition partition_info32k[] = {
- { name: "AUTCPU12 flash partition 1",
- offset: 0,
- size: 8 * SZ_1M },
- { name: "AUTCPU12 flash partition 2",
- offset: 8 * SZ_1M,
- size: 24 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 1",
+ .offset = 0,
+ .size = 8 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 2",
+ .offset = 8 * SZ_1M,
+ .size = 24 * SZ_1M },
};

static struct mtd_partition partition_info64k[] = {
- { name: "AUTCPU12 flash partition 1",
- offset: 0,
- size: 16 * SZ_1M },
- { name: "AUTCPU12 flash partition 2",
- offset: 16 * SZ_1M,
- size: 48 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 1",
+ .offset = 0,
+ .size = 16 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 2",
+ .offset = 16 * SZ_1M,
+ .size = 48 * SZ_1M },
};

static struct mtd_partition partition_info128k[] = {
- { name: "AUTCPU12 flash partition 1",
- offset: 0,
- size: 16 * SZ_1M },
- { name: "AUTCPU12 flash partition 2",
- offset: 16 * SZ_1M,
- size: 112 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 1",
+ .offset = 0,
+ .size = 16 * SZ_1M },
+ { .name = "AUTCPU12 flash partition 2",
+ .offset = 16 * SZ_1M,
+ .size = 112 * SZ_1M },
};

#define NUM_PARTITIONS16K 2
diff -aur linux.backup/drivers/mtd/nand/edb7312.c linux/drivers/mtd/nand/edb7312.c
--- linux.backup/drivers/mtd/nand/edb7312.c Thu Jun 26 23:47:35 2003
+++ linux/drivers/mtd/nand/edb7312.c Sat Aug 16 23:42:41 2003
@@ -71,9 +71,9 @@
* Define static partitions for flash device
*/
static struct mtd_partition partition_info[] = {
- { name: "EP7312 Nand Flash",
- offset: 0,
- size: 8*1024*1024 }
+ { .name = "EP7312 Nand Flash",
+ .offset = 0,
+ .size = 8*1024*1024 }
};
#define NUM_PARTITIONS 1

diff -aur linux.backup/drivers/net/amd8111e.c linux/drivers/net/amd8111e.c
--- linux.backup/drivers/net/amd8111e.c Sat Aug 16 15:02:48 2003
+++ linux/drivers/net/amd8111e.c Sat Aug 16 23:45:23 2003
@@ -1940,12 +1940,12 @@
}

static struct pci_driver amd8111e_driver = {
- name: MODULE_NAME,
- id_table: amd8111e_pci_tbl,
- probe: amd8111e_probe_one,
- remove: __devexit_p(amd8111e_remove_one),
- suspend: amd8111e_suspend,
- resume: amd8111e_resume
+ .name = MODULE_NAME,
+ .id_table = amd8111e_pci_tbl,
+ .probe = amd8111e_probe_one,
+ .remove = __devexit_p(amd8111e_remove_one),
+ .suspend = amd8111e_suspend,
+ .resume = amd8111e_resume
};

static int __init amd8111e_init(void)
diff -aur linux.backup/drivers/net/arm/ether00.c linux/drivers/net/arm/ether00.c
--- linux.backup/drivers/net/arm/ether00.c Sat Aug 16 15:02:48 2003
+++ linux/drivers/net/arm/ether00.c Sat Aug 16 15:45:00 2003
@@ -991,9 +991,9 @@
}

static struct pld_hotswap_ops ether00_pldhs_ops={
- name: ETHER00_NAME,
- add_device: ether00_add_device,
- remove_devices: ether00_remove_devices,
+ .name = ETHER00_NAME,
+ .add_device = ether00_add_device,
+ .remove_devices = ether00_remove_devices,
};


diff -aur linux.backup/drivers/net/irda/via-ircc.c linux/drivers/net/irda/via-ircc.c
--- linux.backup/drivers/net/irda/via-ircc.c Sat Aug 16 15:02:49 2003
+++ linux/drivers/net/irda/via-ircc.c Sat Aug 16 15:45:00 2003
@@ -134,10 +134,10 @@


static struct pci_driver via_driver = {
- name: VIA_MODULE_NAME,
- id_table: via_pci_tbl,
- probe: via_init_one,
- remove: via_remove_one,
+ .name = VIA_MODULE_NAME,
+ .id_table = via_pci_tbl,
+ .probe = via_init_one,
+ .remove = via_remove_one,
};


diff -aur linux.backup/drivers/net/sungem_phy.c linux/drivers/net/sungem_phy.c
--- linux.backup/drivers/net/sungem_phy.c Thu Jun 26 23:46:36 2003
+++ linux/drivers/net/sungem_phy.c Sat Aug 16 23:49:13 2003
@@ -634,116 +634,116 @@

/* Broadcom BCM 5201 */
static struct mii_phy_ops bcm5201_phy_ops = {
- init: bcm5201_init,
- suspend: bcm5201_suspend,
- setup_aneg: genmii_setup_aneg,
- setup_forced: genmii_setup_forced,
- poll_link: genmii_poll_link,
- read_link: genmii_read_link,
+ .init = bcm5201_init,
+ .suspend = bcm5201_suspend,
+ .setup_aneg = genmii_setup_aneg,
+ .setup_forced = genmii_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = genmii_read_link,
};

static struct mii_phy_def bcm5201_phy_def = {
- phy_id: 0x00406210,
- phy_id_mask: 0xfffffff0,
- name: "BCM5201",
- features: MII_BASIC_FEATURES,
- magic_aneg: 0,
- ops: &bcm5201_phy_ops
+ .phy_id = 0x00406210,
+ .phy_id_mask = 0xfffffff0,
+ .name = "BCM5201",
+ .features = MII_BASIC_FEATURES,
+ .magic_aneg = 0,
+ .ops = &bcm5201_phy_ops
};

/* Broadcom BCM 5221 */
static struct mii_phy_ops bcm5221_phy_ops = {
- suspend: bcm5201_suspend,
- init: bcm5221_init,
- setup_aneg: genmii_setup_aneg,
- setup_forced: genmii_setup_forced,
- poll_link: genmii_poll_link,
- read_link: genmii_read_link,
+ .suspend = bcm5201_suspend,
+ .init = bcm5221_init,
+ .setup_aneg = genmii_setup_aneg,
+ .setup_forced = genmii_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = genmii_read_link,
};

static struct mii_phy_def bcm5221_phy_def = {
- phy_id: 0x004061e0,
- phy_id_mask: 0xfffffff0,
- name: "BCM5221",
- features: MII_BASIC_FEATURES,
- magic_aneg: 0,
- ops: &bcm5221_phy_ops
+ .phy_id = 0x004061e0,
+ .phy_id_mask = 0xfffffff0,
+ .name = "BCM5221",
+ .features = MII_BASIC_FEATURES,
+ .magic_aneg = 0,
+ .ops = &bcm5221_phy_ops
};

/* Broadcom BCM 5400 */
static struct mii_phy_ops bcm5400_phy_ops = {
- init: bcm5400_init,
- suspend: bcm5400_suspend,
- setup_aneg: bcm54xx_setup_aneg,
- setup_forced: bcm54xx_setup_forced,
- poll_link: genmii_poll_link,
- read_link: bcm54xx_read_link,
+ .init = bcm5400_init,
+ .suspend = bcm5400_suspend,
+ .setup_aneg = bcm54xx_setup_aneg,
+ .setup_forced = bcm54xx_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = bcm54xx_read_link,
};

static struct mii_phy_def bcm5400_phy_def = {
- phy_id: 0x00206040,
- phy_id_mask: 0xfffffff0,
- name: "BCM5400",
- features: MII_GBIT_FEATURES,
- magic_aneg: 1,
- ops: &bcm5400_phy_ops
+ .phy_id = 0x00206040,
+ .phy_id_mask = 0xfffffff0,
+ .name = "BCM5400",
+ .features = MII_GBIT_FEATURES,
+ .magic_aneg = 1,
+ .ops = &bcm5400_phy_ops
};

/* Broadcom BCM 5401 */
static struct mii_phy_ops bcm5401_phy_ops = {
- init: bcm5401_init,
- suspend: bcm5401_suspend,
- setup_aneg: bcm54xx_setup_aneg,
- setup_forced: bcm54xx_setup_forced,
- poll_link: genmii_poll_link,
- read_link: bcm54xx_read_link,
+ .init = bcm5401_init,
+ .suspend = bcm5401_suspend,
+ .setup_aneg = bcm54xx_setup_aneg,
+ .setup_forced = bcm54xx_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = bcm54xx_read_link,
};

static struct mii_phy_def bcm5401_phy_def = {
- phy_id: 0x00206050,
- phy_id_mask: 0xfffffff0,
- name: "BCM5401",
- features: MII_GBIT_FEATURES,
- magic_aneg: 1,
- ops: &bcm5401_phy_ops
+ .phy_id = 0x00206050,
+ .phy_id_mask = 0xfffffff0,
+ .name = "BCM5401",
+ .features = MII_GBIT_FEATURES,
+ .magic_aneg = 1,
+ .ops = &bcm5401_phy_ops
};

/* Broadcom BCM 5411 */
static struct mii_phy_ops bcm5411_phy_ops = {
- init: bcm5411_init,
- suspend: bcm5411_suspend,
- setup_aneg: bcm54xx_setup_aneg,
- setup_forced: bcm54xx_setup_forced,
- poll_link: genmii_poll_link,
- read_link: bcm54xx_read_link,
+ .init = bcm5411_init,
+ .suspend = bcm5411_suspend,
+ .setup_aneg = bcm54xx_setup_aneg,
+ .setup_forced = bcm54xx_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = bcm54xx_read_link,
};

static struct mii_phy_def bcm5411_phy_def = {
- phy_id: 0x00206070,
- phy_id_mask: 0xfffffff0,
- name: "BCM5411",
- features: MII_GBIT_FEATURES,
- magic_aneg: 1,
- ops: &bcm5411_phy_ops
+ .phy_id = 0x00206070,
+ .phy_id_mask = 0xfffffff0,
+ .name = "BCM5411",
+ .features = MII_GBIT_FEATURES,
+ .magic_aneg = 1,
+ .ops = &bcm5411_phy_ops
};

/* Broadcom BCM 5421 */
static struct mii_phy_ops bcm5421_phy_ops = {
- init: bcm5421_init,
- suspend: bcm5411_suspend,
- setup_aneg: bcm54xx_setup_aneg,
- setup_forced: bcm54xx_setup_forced,
- poll_link: genmii_poll_link,
- read_link: bcm54xx_read_link,
+ .init = bcm5421_init,
+ .suspend = bcm5411_suspend,
+ .setup_aneg = bcm54xx_setup_aneg,
+ .setup_forced = bcm54xx_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = bcm54xx_read_link,
};

static struct mii_phy_def bcm5421_phy_def = {
- phy_id: 0x002060e0,
- phy_id_mask: 0xfffffff0,
- name: "BCM5421",
- features: MII_GBIT_FEATURES,
- magic_aneg: 1,
- ops: &bcm5421_phy_ops
+ .phy_id = 0x002060e0,
+ .phy_id_mask = 0xfffffff0,
+ .name = "BCM5421",
+ .features = MII_GBIT_FEATURES,
+ .magic_aneg = 1,
+ .ops = &bcm5421_phy_ops
};

/* Marvell 88E1101 (Apple seem to deal with 2 different revs,
@@ -751,36 +751,36 @@
* would be useful here) --BenH.
*/
static struct mii_phy_ops marvell_phy_ops = {
- setup_aneg: marvell_setup_aneg,
- setup_forced: marvell_setup_forced,
- poll_link: genmii_poll_link,
- read_link: marvell_read_link
+ .setup_aneg = marvell_setup_aneg,
+ .setup_forced = marvell_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = marvell_read_link
};

static struct mii_phy_def marvell_phy_def = {
- phy_id: 0x01410c00,
- phy_id_mask: 0xffffff00,
- name: "Marvell 88E1101",
- features: MII_GBIT_FEATURES,
- magic_aneg: 1,
- ops: &marvell_phy_ops
+ .phy_id = 0x01410c00,
+ .phy_id_mask = 0xffffff00,
+ .name = "Marvell 88E1101",
+ .features = MII_GBIT_FEATURES,
+ .magic_aneg = 1,
+ .ops = &marvell_phy_ops
};

/* Generic implementation for most 10/100 PHYs */
static struct mii_phy_ops generic_phy_ops = {
- setup_aneg: genmii_setup_aneg,
- setup_forced: genmii_setup_forced,
- poll_link: genmii_poll_link,
- read_link: genmii_read_link
+ .setup_aneg = genmii_setup_aneg,
+ .setup_forced = genmii_setup_forced,
+ .poll_link = genmii_poll_link,
+ .read_link = genmii_read_link
};

static struct mii_phy_def genmii_phy_def = {
- phy_id: 0x00000000,
- phy_id_mask: 0x00000000,
- name: "Generic MII",
- features: MII_BASIC_FEATURES,
- magic_aneg: 0,
- ops: &generic_phy_ops
+ .phy_id = 0x00000000,
+ .phy_id_mask = 0x00000000,
+ .name = "Generic MII",
+ .features = MII_BASIC_FEATURES,
+ .magic_aneg = 0,
+ .ops = &generic_phy_ops
};

static struct mii_phy_def* mii_phy_table[] = {
diff -aur linux.backup/drivers/s390/net/qeth.c linux/drivers/s390/net/qeth.c
--- linux.backup/drivers/s390/net/qeth.c Sat Aug 16 15:02:22 2003
+++ linux/drivers/s390/net/qeth.c Sat Aug 16 23:52:37 2003
@@ -9765,19 +9765,19 @@
};

static struct file_operations qeth_procfile_fops = {
- ioctl:qeth_procfile_ioctl,
- read:qeth_procfile_read,
- open:qeth_procfile_open,
- release:qeth_procfile_release,
+ .ioctl = qeth_procfile_ioctl,
+ .read = qeth_procfile_read,
+ .open = qeth_procfile_open,
+ .release = qeth_procfile_release,
};

static struct proc_dir_entry *qeth_proc_file;

static struct file_operations qeth_ipato_procfile_fops = {
- read:qeth_procfile_read, /* same as above! */
- write:qeth_ipato_procfile_write,
- open:qeth_ipato_procfile_open,
- release:qeth_procfile_release /* same as above! */
+ .read = qeth_procfile_read, /* same as above! */
+ .write = qeth_ipato_procfile_write,
+ .open = qeth_ipato_procfile_open,
+ .release = qeth_procfile_release /* same as above! */
};

static struct proc_dir_entry *qeth_ipato_proc_file;
diff -aur linux.backup/drivers/scsi/aic7xxx/aic79xx_osm_pci.c linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c
--- linux.backup/drivers/scsi/aic7xxx/aic79xx_osm_pci.c Thu Jun 26 23:48:40 2003
+++ linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c Sat Aug 16 23:52:54 2003
@@ -72,10 +72,10 @@
MODULE_DEVICE_TABLE(pci, ahd_linux_pci_id_table);

struct pci_driver aic79xx_pci_driver = {
- name: "aic79xx",
- probe: ahd_linux_pci_dev_probe,
- remove: ahd_linux_pci_dev_remove,
- id_table: ahd_linux_pci_id_table
+ .name = "aic79xx",
+ .probe = ahd_linux_pci_dev_probe,
+ .remove = ahd_linux_pci_dev_remove,
+ .id_table = ahd_linux_pci_id_table
};

static void
diff -aur linux.backup/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c linux/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
--- linux.backup/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c Thu Jun 26 23:47:40 2003
+++ linux/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c Sat Aug 16 23:53:12 2003
@@ -75,10 +75,10 @@
MODULE_DEVICE_TABLE(pci, ahc_linux_pci_id_table);

struct pci_driver aic7xxx_pci_driver = {
- name: "aic7xxx",
- probe: ahc_linux_pci_dev_probe,
- remove: ahc_linux_pci_dev_remove,
- id_table: ahc_linux_pci_id_table
+ .name = "aic7xxx",
+ .probe = ahc_linux_pci_dev_probe,
+ .remove = ahc_linux_pci_dev_remove,
+ .id_table = ahc_linux_pci_id_table
};

static void
diff -aur linux.backup/drivers/usb/host/hc_sl811_rh.c linux/drivers/usb/host/hc_sl811_rh.c
--- linux.backup/drivers/usb/host/hc_sl811_rh.c Sat Aug 16 15:02:54 2003
+++ linux/drivers/usb/host/hc_sl811_rh.c Sat Aug 16 23:57:09 2003
@@ -329,7 +329,7 @@
switch (bmRType_bReq) {
/* Request Destination:
without flags: Device,
- RH_INTERFACE: interface,
+ RH_INTERFACE: interface,
RH_ENDPOINT: endpoint,
RH_CLASS means HUB here,
RH_OTHER | RH_CLASS almost ever means HUB_PORT here
diff -aur linux.backup/drivers/video/68328fb.c linux/drivers/video/68328fb.c
--- linux.backup/drivers/video/68328fb.c Tue Dec 10 15:18:53 2002
+++ linux/drivers/video/68328fb.c Sat Aug 16 23:58:20 2003
@@ -401,12 +401,12 @@
((1<<(width))-1)) : 0))

static struct fb_ops mc68328_fb_ops = {
- .owner: THIS_MODULE,
- .fb_setcolreg: mc68328fb_setcolreg,
- .fb_fillrect: cfbfillrect,
- .fb_copyarea: cfbcopyarea,
- .fb_imageblit: cfbimgblt,
- .fb_cursor: softcursor,
+ .owner = THIS_MODULE,
+ .fb_setcolreg = mc68328fb_setcolreg,
+ .fb_fillrect = cfbfillrect,
+ .fb_copyarea = cfbcopyarea,
+ .fb_imageblit = cfbimgblt,
+ .fb_cursor = softcursor,
};


diff -aur linux.backup/drivers/video/riva/fbdev.c linux/drivers/video/riva/fbdev.c
--- linux.backup/drivers/video/riva/fbdev.c Sat Aug 16 15:02:55 2003
+++ linux/drivers/video/riva/fbdev.c Sat Aug 16 23:59:34 2003
@@ -297,34 +297,34 @@
#endif

static struct fb_fix_screeninfo rivafb_fix = {
- id: "nVidia",
- type: FB_TYPE_PACKED_PIXELS,
- xpanstep: 1,
- ypanstep: 1,
+ .id = "nVidia",
+ .type = FB_TYPE_PACKED_PIXELS,
+ .xpanstep = 1,
+ .ypanstep = 1,
};

static struct fb_var_screeninfo rivafb_default_var = {
- xres: 640,
- yres: 480,
- xres_virtual: 640,
- yres_virtual: 480,
- bits_per_pixel: 8,
- red: {0, 8, 0},
- green: {0, 8, 0},
- blue: {0, 8, 0},
- transp: {0, 0, 0},
- activate: FB_ACTIVATE_NOW,
- height: -1,
- width: -1,
- accel_flags: FB_ACCELF_TEXT,
- pixclock: 39721,
- left_margin: 40,
- right_margin: 24,
- upper_margin: 32,
- lower_margin: 11,
- hsync_len: 96,
- vsync_len: 2,
- vmode: FB_VMODE_NONINTERLACED
+ .xres = 640,
+ .yres = 480,
+ .xres_virtual = 640,
+ .yres_virtual = 480,
+ .bits_per_pixel = 8,
+ .red = {0, 8, 0},
+ .green = {0, 8, 0},
+ .blue = {0, 8, 0},
+ .transp = {0, 0, 0},
+ .activate = FB_ACTIVATE_NOW,
+ .height = -1,
+ .width = -1,
+ .accel_flags = FB_ACCELF_TEXT,
+ .pixclock = 39721,
+ .left_margin = 40,
+ .right_margin = 24,
+ .upper_margin = 32,
+ .lower_margin = 11,
+ .hsync_len = 96,
+ .vsync_len = 2,
+ .vmode = FB_VMODE_NONINTERLACED
};

/* from GGI */
@@ -1977,10 +1977,10 @@
#endif /* !MODULE */

static struct pci_driver rivafb_driver = {
- name: "rivafb",
- id_table: rivafb_pci_tbl,
- probe: rivafb_probe,
- remove: __exit_p(rivafb_remove),
+ .name = "rivafb",
+ .id_table = rivafb_pci_tbl,
+ .probe = rivafb_probe,
+ .remove = __exit_p(rivafb_remove),
};


diff -aur linux.backup/drivers/video/sis/sis_accel.c linux/drivers/video/sis/sis_accel.c
--- linux.backup/drivers/video/sis/sis_accel.c Tue Mar 25 10:54:08 2003
+++ linux/drivers/video/sis/sis_accel.c Sun Aug 17 00:02:32 2003
@@ -591,38 +591,38 @@

#ifdef FBCON_HAS_CFB8
struct display_switch fbcon_sis8 = {
- setup: fbcon_cfb8_setup,
- bmove: fbcon_sis_bmove,
- clear: fbcon_sis_clear8,
- putc: fbcon_cfb8_putc,
- putcs: fbcon_cfb8_putcs,
- revc: fbcon_cfb8_revc,
- clear_margins: fbcon_cfb8_clear_margins,
- fontwidthmask: FONTWIDTH(4)|FONTWIDTH(8)|FONTWIDTH(12)|FONTWIDTH(16)
+ .setup = fbcon_cfb8_setup,
+ .bmove = fbcon_sis_bmove,
+ .clear = fbcon_sis_clear8,
+ .putc = fbcon_cfb8_putc,
+ .putcs = fbcon_cfb8_putcs,
+ .revc = fbcon_cfb8_revc,
+ .clear_margins = fbcon_cfb8_clear_margins,
+ .fontwidthmask = FONTWIDTH(4)|FONTWIDTH(8)|FONTWIDTH(12)|FONTWIDTH(16)
};
#endif
#ifdef FBCON_HAS_CFB16
struct display_switch fbcon_sis16 = {
- setup: fbcon_cfb16_setup,
- bmove: fbcon_sis_bmove,
- clear: fbcon_sis_clear16,
- putc: fbcon_cfb16_putc,
- putcs: fbcon_cfb16_putcs,
- revc: fbcon_sis_revc,
- clear_margins: fbcon_cfb16_clear_margins,
- fontwidthmask: FONTWIDTH(4)|FONTWIDTH(8)|FONTWIDTH(12)|FONTWIDTH(16)
+ .setup = fbcon_cfb16_setup,
+ .bmove = fbcon_sis_bmove,
+ .clear = fbcon_sis_clear16,
+ .putc = fbcon_cfb16_putc,
+ .putcs = fbcon_cfb16_putcs,
+ .revc = fbcon_sis_revc,
+ .clear_margins = fbcon_cfb16_clear_margins,
+ .fontwidthmask = FONTWIDTH(4)|FONTWIDTH(8)|FONTWIDTH(12)|FONTWIDTH(16)
};
#endif
#ifdef FBCON_HAS_CFB32
struct display_switch fbcon_sis32 = {
- setup: fbcon_cfb32_setup,
- bmove: fbcon_sis_bmove,
- clear: fbcon_sis_clear32,
- putc: fbcon_cfb32_putc,
- putcs: fbcon_cfb32_putcs,
- revc: fbcon_sis_revc,
- clear_margins: fbcon_cfb32_clear_margins,
- fontwidthmask: FONTWIDTH(4)|FONTWIDTH(8)|FONTWIDTH(12)|FONTWIDTH(16)
+ .setup = fbcon_cfb32_setup,
+ .bmove = fbcon_sis_bmove,
+ .clear = fbcon_sis_clear32,
+ .putc = fbcon_cfb32_putc,
+ .putcs = fbcon_cfb32_putcs,
+ .revc = fbcon_sis_revc,
+ .clear_margins = fbcon_cfb32_clear_margins,
+ .fontwidthmask = FONTWIDTH(4)|FONTWIDTH(8)|FONTWIDTH(12)|FONTWIDTH(16)
};
#endif

diff -aur linux.backup/drivers/video/sis/sis_main.c linux/drivers/video/sis/sis_main.c
--- linux.backup/drivers/video/sis/sis_main.c Thu Jun 26 23:47:47 2003
+++ linux/drivers/video/sis/sis_main.c Sat Aug 16 15:45:01 2003
@@ -2033,17 +2033,17 @@

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
static struct fb_ops sisfb_ops = {
- owner: THIS_MODULE,
- fb_get_fix: sisfb_get_fix,
- fb_get_var: sisfb_get_var,
- fb_set_var: sisfb_set_var,
- fb_get_cmap: sisfb_get_cmap,
- fb_set_cmap: sisfb_set_cmap,
+ .owner = THIS_MODULE,
+ .fb_get_fix = sisfb_get_fix,
+ .fb_get_var = sisfb_get_var,
+ .fb_set_var = sisfb_set_var,
+ .fb_get_cmap = sisfb_get_cmap,
+ .fb_set_cmap = sisfb_set_cmap,
#ifdef SISFB_PAN
- fb_pan_display: sisfb_pan_display,
+ .fb_pan_display = sisfb_pan_display,
#endif
- fb_ioctl: sisfb_ioctl,
- fb_mmap: sisfb_mmap,
+ .fb_ioctl = sisfb_ioctl,
+ .fb_mmap = sisfb_mmap,
};
#endif
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.102 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site