Commit 2d8bbe5e authored by Art Haas's avatar Art Haas Committed by Andy Grover

[PATCH] C99 designated initializers for arch/cris

parent 03a93e51
...@@ -151,16 +151,16 @@ static void flash_write32(struct map_info *map, __u32 d, unsigned long adr) ...@@ -151,16 +151,16 @@ static void flash_write32(struct map_info *map, __u32 d, unsigned long adr)
} }
static struct map_info axis_map = { static struct map_info axis_map = {
name: "Axis flash", .name = "Axis flash",
size: WINDOW_SIZE, .size = WINDOW_SIZE,
buswidth: CONFIG_ETRAX_FLASH_BUSWIDTH, .buswidth = CONFIG_ETRAX_FLASH_BUSWIDTH,
read8: flash_read8, .read8 = flash_read8,
read16: flash_read16, .read16 = flash_read16,
read32: flash_read32, .read32 = flash_read32,
copy_from: flash_copy_from, .copy_from = flash_copy_from,
write8: flash_write8, .write8 = flash_write8,
write16: flash_write16, .write16 = flash_write16,
write32: flash_write32, .write32 = flash_write32,
}; };
/* If no partition-table was found, we use this default-set. /* If no partition-table was found, we use this default-set.
...@@ -175,57 +175,57 @@ static struct map_info axis_map = { ...@@ -175,57 +175,57 @@ static struct map_info axis_map = {
*/ */
static struct mtd_partition axis_default_partitions[NUM_DEFAULT_PARTITIONS] = { static struct mtd_partition axis_default_partitions[NUM_DEFAULT_PARTITIONS] = {
{ {
name: "boot firmware", .name = "boot firmware",
size: CONFIG_ETRAX_PTABLE_SECTOR, .size = CONFIG_ETRAX_PTABLE_SECTOR,
offset: 0 .offset = 0
}, },
{ {
name: "kernel", .name = "kernel",
size: 0x200000 - (6 * CONFIG_ETRAX_PTABLE_SECTOR), .size = 0x200000 - (6 * CONFIG_ETRAX_PTABLE_SECTOR),
offset: CONFIG_ETRAX_PTABLE_SECTOR .offset = CONFIG_ETRAX_PTABLE_SECTOR
}, },
{ {
name: "filesystem", .name = "filesystem",
size: 5 * CONFIG_ETRAX_PTABLE_SECTOR, .size = 5 * CONFIG_ETRAX_PTABLE_SECTOR,
offset: 0x200000 - (5 * CONFIG_ETRAX_PTABLE_SECTOR) .offset = 0x200000 - (5 * CONFIG_ETRAX_PTABLE_SECTOR)
} }
}; };
static struct mtd_partition axis_partitions[MAX_PARTITIONS] = { static struct mtd_partition axis_partitions[MAX_PARTITIONS] = {
{ {
name: "part0", .name = "part0",
size: 0, .size = 0,
offset: 0 .offset = 0
}, },
{ {
name: "part1", .name = "part1",
size: 0, .size = 0,
offset: 0 .offset = 0
}, },
{ {
name: "part2", .name = "part2",
size: 0, .size = 0,
offset: 0 .offset = 0
}, },
{ {
name: "part3", .name = "part3",
size: 0, .size = 0,
offset: 0 .offset = 0
}, },
{ {
name: "part4", .name = "part4",
size: 0, .size = 0,
offset: 0 .offset = 0
}, },
{ {
name: "part5", .name = "part5",
size: 0, .size = 0,
offset: 0 .offset = 0
}, },
{ {
name: "part6", .name = "part6",
size: 0, .size = 0,
offset: 0 .offset = 0
}, },
}; };
......
...@@ -479,8 +479,8 @@ get_rtc_status(char *buf) ...@@ -479,8 +479,8 @@ get_rtc_status(char *buf)
/* The various file operations we support. */ /* The various file operations we support. */
static struct file_operations rtc_fops = { static struct file_operations rtc_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
ioctl: rtc_ioctl, .ioctl = rtc_ioctl,
}; };
/* Just probe for the RTC and register the device to handle the ioctl needed. */ /* Just probe for the RTC and register the device to handle the ioctl needed. */
......
...@@ -149,11 +149,11 @@ static struct eeprom_type eeprom; ...@@ -149,11 +149,11 @@ static struct eeprom_type eeprom;
/* This is the exported file-operations structure for this device. */ /* This is the exported file-operations structure for this device. */
struct file_operations eeprom_fops = struct file_operations eeprom_fops =
{ {
llseek: eeprom_lseek, .llseek = eeprom_lseek,
read: eeprom_read, .read = eeprom_read,
write: eeprom_write, .write = eeprom_write,
open: eeprom_open, .open = eeprom_open,
release: eeprom_close .release = eeprom_close
}; };
/* eeprom init call. Probes for different eeprom models. */ /* eeprom init call. Probes for different eeprom models. */
......
...@@ -407,12 +407,12 @@ gpio_leds_ioctl(unsigned int cmd, unsigned long arg) ...@@ -407,12 +407,12 @@ gpio_leds_ioctl(unsigned int cmd, unsigned long arg)
} }
struct file_operations gpio_fops = { struct file_operations gpio_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
poll: gpio_poll, .poll = gpio_poll,
ioctl: gpio_ioctl, .ioctl = gpio_ioctl,
write: gpio_write, .write = gpio_write,
open: gpio_open, .open = gpio_open,
release: gpio_release, .release = gpio_release,
}; };
/* main driver initialization routine, called from mem.c */ /* main driver initialization routine, called from mem.c */
......
...@@ -654,10 +654,10 @@ i2c_ioctl(struct inode *inode, struct file *file, ...@@ -654,10 +654,10 @@ i2c_ioctl(struct inode *inode, struct file *file,
} }
static struct file_operations i2c_fops = { static struct file_operations i2c_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
ioctl: i2c_ioctl, .ioctl = i2c_ioctl,
open: i2c_open, .open = i2c_open,
release: i2c_release, .release = i2c_release,
}; };
static int __init static int __init
......
...@@ -177,12 +177,12 @@ static unsigned gen_config_ii_shadow = 0; ...@@ -177,12 +177,12 @@ static unsigned gen_config_ii_shadow = 0;
#define NUMBER_OF_PORTS (sizeof(ports)/sizeof(sync_port)) #define NUMBER_OF_PORTS (sizeof(ports)/sizeof(sync_port))
static struct file_operations sync_serial_fops = { static struct file_operations sync_serial_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
write: sync_serial_write, .write = sync_serial_write,
read: sync_serial_read, .read = sync_serial_read,
ioctl: sync_serial_ioctl, .ioctl = sync_serial_ioctl,
open: sync_serial_open, .open = sync_serial_open,
release: sync_serial_release .release = sync_serial_release
}; };
static int __init etrax_sync_serial_init(void) static int __init etrax_sync_serial_init(void)
......
...@@ -227,16 +227,16 @@ console_setup(struct console *co, char *options) ...@@ -227,16 +227,16 @@ console_setup(struct console *co, char *options)
} }
static struct console sercons = { static struct console sercons = {
name: "ttyS", .name = "ttyS",
write: console_write, .write = console_write,
read: NULL, .read = NULL,
device: console_device, .device = console_device,
unblank: NULL, .unblank = NULL,
setup: console_setup, .setup = console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: DEBUG_PORT_IDX, .index = DEBUG_PORT_IDX,
cflag: 0, .cflag = 0,
next: NULL .next = NULL
}; };
/* /*
......
...@@ -280,10 +280,10 @@ static void c_stop(struct seq_file *m, void *v) ...@@ -280,10 +280,10 @@ static void c_stop(struct seq_file *m, void *v)
} }
struct seq_operations cpuinfo_op = { struct seq_operations cpuinfo_op = {
start: c_start, .start = c_start,
next: c_next, .next = c_next,
stop: c_stop, .stop = c_stop,
show: show_cpuinfo, .show = show_cpuinfo,
}; };
#endif /* CONFIG_PROC_FS */ #endif /* CONFIG_PROC_FS */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment