Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1add29dd
Commit
1add29dd
authored
Jul 18, 2002
by
Rusty Russell
Committed by
David S. Miller
Jul 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPARC: Use ISO C struct initializers.
parent
47e4a053
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
149 additions
and
149 deletions
+149
-149
arch/sparc/kernel/apc.c
arch/sparc/kernel/apc.c
+3
-3
arch/sparc/kernel/setup.c
arch/sparc/kernel/setup.c
+8
-8
arch/sparc64/kernel/setup.c
arch/sparc64/kernel/setup.c
+12
-12
arch/sparc64/solaris/misc.c
arch/sparc64/solaris/misc.c
+8
-8
arch/sparc64/solaris/socksys.c
arch/sparc64/solaris/socksys.c
+2
-2
drivers/sbus/audio/audio.c
drivers/sbus/audio/audio.c
+11
-11
drivers/sbus/char/bpp.c
drivers/sbus/char/bpp.c
+6
-6
drivers/sbus/char/cpwatchdog.c
drivers/sbus/char/cpwatchdog.c
+6
-6
drivers/sbus/char/display7seg.c
drivers/sbus/char/display7seg.c
+4
-4
drivers/sbus/char/envctrl.c
drivers/sbus/char/envctrl.c
+5
-5
drivers/sbus/char/flash.c
drivers/sbus/char/flash.c
+6
-6
drivers/sbus/char/jsflash.c
drivers/sbus/char/jsflash.c
+12
-12
drivers/sbus/char/openprom.c
drivers/sbus/char/openprom.c
+5
-5
drivers/sbus/char/pcikbd.c
drivers/sbus/char/pcikbd.c
+9
-9
drivers/sbus/char/riowatchdog.c
drivers/sbus/char/riowatchdog.c
+6
-6
drivers/sbus/char/rtc.c
drivers/sbus/char/rtc.c
+5
-5
drivers/sbus/char/sab82532.c
drivers/sbus/char/sab82532.c
+6
-6
drivers/sbus/char/su.c
drivers/sbus/char/su.c
+6
-6
drivers/sbus/char/sunkbd.c
drivers/sbus/char/sunkbd.c
+6
-6
drivers/sbus/char/sunmouse.c
drivers/sbus/char/sunmouse.c
+7
-7
drivers/sbus/char/uctrl.c
drivers/sbus/char/uctrl.c
+4
-4
drivers/sbus/char/vfc_dev.c
drivers/sbus/char/vfc_dev.c
+6
-6
drivers/sbus/char/zs.c
drivers/sbus/char/zs.c
+6
-6
No files found.
arch/sparc/kernel/apc.c
View file @
1add29dd
...
...
@@ -115,9 +115,9 @@ static int apc_ioctl(struct inode *inode, struct file *f,
}
static
struct
file_operations
apc_fops
=
{
ioctl:
apc_ioctl
,
open:
apc_open
,
release:
apc_release
,
.
ioctl
=
apc_ioctl
,
.
open
=
apc_open
,
.
release
=
apc_release
,
};
static
struct
miscdevice
apc_miscdev
=
{
APC_MINOR
,
APC_DEVNAME
,
&
apc_fops
};
...
...
arch/sparc/kernel/setup.c
View file @
1add29dd
...
...
@@ -140,10 +140,10 @@ prom_console_write(struct console *con, const char *s, unsigned n)
}
static
struct
console
prom_debug_console
=
{
name:
"debug"
,
write:
prom_console_write
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
name
=
"debug"
,
.
write
=
prom_console_write
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
int
obp_system_intr
(
void
)
...
...
@@ -518,8 +518,8 @@ 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
,
};
arch/sparc64/kernel/setup.c
View file @
1add29dd
...
...
@@ -78,10 +78,10 @@ prom_console_write(struct console *con, const char *s, unsigned n)
}
static
struct
console
prom_console
=
{
name:
"prom"
,
write:
prom_console_write
,
flags:
CON_CONSDEV
|
CON_ENABLED
,
index:
-
1
,
.
name
=
"prom"
,
.
write
=
prom_console_write
,
.
flags
=
CON_CONSDEV
|
CON_ENABLED
,
.
index
=
-
1
,
};
#define PROM_TRUE -1
...
...
@@ -324,10 +324,10 @@ static int console_fb __initdata = 0;
unsigned
long
cmdline_memory_size
=
0
;
static
struct
console
prom_debug_console
=
{
name:
"debug"
,
write:
prom_console_write
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
name
=
"debug"
,
.
write
=
prom_console_write
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
/* XXX Implement this at some point... */
...
...
@@ -686,8 +686,8 @@ 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
,
};
arch/sparc64/solaris/misc.c
View file @
1add29dd
...
...
@@ -708,14 +708,14 @@ asmlinkage void solaris_register(void)
extern
long
solaris_to_linux_signals
[],
linux_to_solaris_signals
[];
struct
exec_domain
solaris_exec_domain
=
{
name:
"Solaris"
,
handler:
NULL
,
pers_low:
1
,
/* PER_SVR4 personality */
pers_high:
1
,
signal_map:
solaris_to_linux_signals
,
signal_invmap:
linux_to_solaris_signals
,
module:
THIS_MODULE
,
next:
NULL
.
name
=
"Solaris"
,
.
handler
=
NULL
,
.
pers_low
=
1
,
/* PER_SVR4 personality */
.
pers_high
=
1
,
.
signal_map
=
solaris_to_linux_signals
,
.
signal_invmap
=
linux_to_solaris_signals
,
.
module
=
THIS_MODULE
,
.
next
=
NULL
};
extern
int
init_socksys
(
void
);
...
...
arch/sparc64/solaris/socksys.c
View file @
1add29dd
...
...
@@ -165,8 +165,8 @@ static unsigned int socksys_poll(struct file * filp, poll_table * wait)
}
static
struct
file_operations
socksys_fops
=
{
open:
socksys_open
,
release:
socksys_release
,
.
open
=
socksys_open
,
.
release
=
socksys_release
,
};
static
devfs_handle_t
devfs_handle
;
...
...
drivers/sbus/audio/audio.c
View file @
1add29dd
...
...
@@ -1694,9 +1694,9 @@ static int sparcaudio_ioctl(struct inode * inode, struct file * file,
}
static
struct
file_operations
sparcaudioctl_fops
=
{
owner:
THIS_MODULE
,
poll:
sparcaudio_poll
,
ioctl:
sparcaudio_ioctl
,
.
owner
=
THIS_MODULE
,
.
poll
=
sparcaudio_poll
,
.
ioctl
=
sparcaudio_ioctl
,
};
static
int
sparcaudio_open
(
struct
inode
*
inode
,
struct
file
*
file
)
...
...
@@ -1886,14 +1886,14 @@ static int sparcaudio_release(struct inode * inode, struct file * file)
}
static
struct
file_operations
sparcaudio_fops
=
{
owner:
THIS_MODULE
,
llseek:
no_llseek
,
read:
sparcaudio_read
,
write:
sparcaudio_write
,
poll:
sparcaudio_poll
,
ioctl:
sparcaudio_ioctl
,
open:
sparcaudio_open
,
release:
sparcaudio_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
read
=
sparcaudio_read
,
.
write
=
sparcaudio_write
,
.
poll
=
sparcaudio_poll
,
.
ioctl
=
sparcaudio_ioctl
,
.
open
=
sparcaudio_open
,
.
release
=
sparcaudio_release
,
};
static
struct
{
...
...
drivers/sbus/char/bpp.c
View file @
1add29dd
...
...
@@ -859,12 +859,12 @@ static int bpp_ioctl(struct inode *inode, struct file *f, unsigned int cmd,
}
static
struct
file_operations
bpp_fops
=
{
owner:
THIS_MODULE
,
read:
bpp_read
,
write:
bpp_write
,
ioctl:
bpp_ioctl
,
open:
bpp_open
,
release:
bpp_release
,
.
owner
=
THIS_MODULE
,
.
read
=
bpp_read
,
.
write
=
bpp_write
,
.
ioctl
=
bpp_ioctl
,
.
open
=
bpp_open
,
.
release
=
bpp_release
,
};
#if defined(__i386__)
...
...
drivers/sbus/char/cpwatchdog.c
View file @
1add29dd
...
...
@@ -460,12 +460,12 @@ static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
static
struct
file_operations
wd_fops
=
{
owner:
THIS_MODULE
,
ioctl:
wd_ioctl
,
open:
wd_open
,
write:
wd_write
,
read:
wd_read
,
release:
wd_release
,
.
owner
=
THIS_MODULE
,
.
ioctl
=
wd_ioctl
,
.
open
=
wd_open
,
.
write
=
wd_write
,
.
read
=
wd_read
,
.
release
=
wd_release
,
};
static
struct
miscdevice
wd0_miscdev
=
{
WD0_MINOR
,
WD0_DEVNAME
,
&
wd_fops
};
...
...
drivers/sbus/char/display7seg.c
View file @
1add29dd
...
...
@@ -164,10 +164,10 @@ static int d7s_ioctl(struct inode *inode, struct file *f,
}
static
struct
file_operations
d7s_fops
=
{
owner:
THIS_MODULE
,
ioctl:
d7s_ioctl
,
open:
d7s_open
,
release:
d7s_release
,
.
owner
=
THIS_MODULE
,
.
ioctl
=
d7s_ioctl
,
.
open
=
d7s_open
,
.
release
=
d7s_release
,
};
static
struct
miscdevice
d7s_miscdev
=
{
D7S_MINOR
,
D7S_DEVNAME
,
&
d7s_fops
};
...
...
drivers/sbus/char/envctrl.c
View file @
1add29dd
...
...
@@ -722,11 +722,11 @@ envctrl_release(struct inode *inode, struct file *file)
}
static
struct
file_operations
envctrl_fops
=
{
owner:
THIS_MODULE
,
read:
envctrl_read
,
ioctl:
envctrl_ioctl
,
open:
envctrl_open
,
release:
envctrl_release
,
.
owner
=
THIS_MODULE
,
.
read
=
envctrl_read
,
.
ioctl
=
envctrl_ioctl
,
.
open
=
envctrl_open
,
.
release
=
envctrl_release
,
};
static
struct
miscdevice
envctrl_dev
=
{
...
...
drivers/sbus/char/flash.c
View file @
1add29dd
...
...
@@ -148,12 +148,12 @@ static struct file_operations flash_fops = {
/* no write to the Flash, use mmap
* and play flash dependent tricks.
*/
owner:
THIS_MODULE
,
llseek:
flash_llseek
,
read:
flash_read
,
mmap:
flash_mmap
,
open:
flash_open
,
release:
flash_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
flash_llseek
,
.
read
=
flash_read
,
.
mmap
=
flash_mmap
,
.
open
=
flash_open
,
.
release
=
flash_release
,
};
static
struct
miscdevice
flash_dev
=
{
FLASH_MINOR
,
"flash"
,
&
flash_fops
};
...
...
drivers/sbus/char/jsflash.c
View file @
1add29dd
...
...
@@ -541,23 +541,23 @@ static int jsfd_release(struct inode *inode, struct file *file)
}
static
struct
file_operations
jsf_fops
=
{
owner:
THIS_MODULE
,
llseek:
jsf_lseek
,
read:
jsf_read
,
write:
jsf_write
,
ioctl:
jsf_ioctl
,
mmap:
jsf_mmap
,
open:
jsf_open
,
release:
jsf_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
jsf_lseek
,
.
read
=
jsf_read
,
.
write
=
jsf_write
,
.
ioctl
=
jsf_ioctl
,
.
mmap
=
jsf_mmap
,
.
open
=
jsf_open
,
.
release
=
jsf_release
,
};
static
struct
miscdevice
jsf_dev
=
{
JSF_MINOR
,
"jsflash"
,
&
jsf_fops
};
static
struct
block_device_operations
jsfd_fops
=
{
owner:
THIS_MODULE
,
open:
jsfd_open
,
release:
jsfd_release
,
ioctl:
jsfd_ioctl
,
.
owner
=
THIS_MODULE
,
.
open
=
jsfd_open
,
.
release
=
jsfd_release
,
.
ioctl
=
jsfd_ioctl
,
};
int
jsflash_init
(
void
)
...
...
drivers/sbus/char/openprom.c
View file @
1add29dd
...
...
@@ -608,11 +608,11 @@ static int openprom_release(struct inode * inode, struct file * file)
}
static
struct
file_operations
openprom_fops
=
{
owner:
THIS_MODULE
,
llseek:
no_llseek
,
ioctl:
openprom_ioctl
,
open:
openprom_open
,
release:
openprom_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
ioctl
=
openprom_ioctl
,
.
open
=
openprom_open
,
.
release
=
openprom_release
,
};
static
struct
miscdevice
openprom_dev
=
{
...
...
drivers/sbus/char/pcikbd.c
View file @
1add29dd
...
...
@@ -1184,13 +1184,13 @@ static unsigned int aux_poll(struct file *file, poll_table * wait)
}
struct
file_operations
psaux_fops
=
{
owner:
THIS_MODULE
,
read:
aux_read
,
write:
aux_write
,
poll:
aux_poll
,
open:
aux_open
,
release:
aux_release
,
fasync:
aux_fasync
,
.
owner
=
THIS_MODULE
,
.
read
=
aux_read
,
.
write
=
aux_write
,
.
poll
=
aux_poll
,
.
open
=
aux_open
,
.
release
=
aux_release
,
.
fasync
=
aux_fasync
,
};
static
int
aux_no_open
(
struct
inode
*
inode
,
struct
file
*
file
)
...
...
@@ -1199,8 +1199,8 @@ static int aux_no_open(struct inode *inode, struct file *file)
}
struct
file_operations
psaux_no_fops
=
{
owner:
THIS_MODULE
,
open:
aux_no_open
,
.
owner
=
THIS_MODULE
,
.
open
=
aux_no_open
,
};
static
struct
miscdevice
psaux_mouse
=
{
...
...
drivers/sbus/char/riowatchdog.c
View file @
1add29dd
...
...
@@ -185,12 +185,12 @@ static ssize_t riowd_read(struct file *file, char *buffer, size_t count, loff_t
}
static
struct
file_operations
riowd_fops
=
{
owner:
THIS_MODULE
,
ioctl:
riowd_ioctl
,
open:
riowd_open
,
write:
riowd_write
,
read:
riowd_read
,
release:
riowd_release
,
.
owner
=
THIS_MODULE
,
.
ioctl
=
riowd_ioctl
,
.
open
=
riowd_open
,
.
write
=
riowd_write
,
.
read
=
riowd_read
,
.
release
=
riowd_release
,
};
static
struct
miscdevice
riowd_miscdev
=
{
RIOWD_MINOR
,
RIOWD_NAME
,
&
riowd_fops
};
...
...
drivers/sbus/char/rtc.c
View file @
1add29dd
...
...
@@ -137,11 +137,11 @@ static int rtc_release(struct inode *inode, struct file *file)
}
static
struct
file_operations
rtc_fops
=
{
owner:
THIS_MODULE
,
llseek:
no_llseek
,
ioctl:
rtc_ioctl
,
open:
rtc_open
,
release:
rtc_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
ioctl
=
rtc_ioctl
,
.
open
=
rtc_open
,
.
release
=
rtc_release
,
};
static
struct
miscdevice
rtc_dev
=
{
RTC_MINOR
,
"rtc"
,
&
rtc_fops
};
...
...
drivers/sbus/char/sab82532.c
View file @
1add29dd
...
...
@@ -2608,12 +2608,12 @@ sab82532_console_setup(struct console *con, char *options)
}
static
struct
console
sab82532_console
=
{
name:
"ttyS"
,
write:
sab82532_console_write
,
device:
sab82532_console_device
,
setup:
sab82532_console_setup
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
name
=
"ttyS"
,
.
write
=
sab82532_console_write
,
.
device
=
sab82532_console_device
,
.
setup
=
sab82532_console_setup
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
int
__init
sab82532_console_init
(
void
)
...
...
drivers/sbus/char/su.c
View file @
1add29dd
...
...
@@ -2976,12 +2976,12 @@ static int __init serial_console_setup(struct console *co, char *options)
}
static
struct
console
sercons
=
{
name:
"ttyS"
,
write:
serial_console_write
,
device:
serial_console_device
,
setup:
serial_console_setup
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
name
=
"ttyS"
,
.
write
=
serial_console_write
,
.
device
=
serial_console_device
,
.
setup
=
serial_console_setup
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
int
su_console_registered
=
0
;
...
...
drivers/sbus/char/sunkbd.c
View file @
1add29dd
...
...
@@ -1548,12 +1548,12 @@ kbd_close (struct inode *i, struct file *f)
static
struct
file_operations
kbd_fops
=
{
read:
kbd_read
,
poll:
kbd_poll
,
ioctl:
kbd_ioctl
,
open:
kbd_open
,
release:
kbd_close
,
fasync:
kbd_fasync
,
.
read
=
kbd_read
,
.
poll
=
kbd_poll
,
.
ioctl
=
kbd_ioctl
,
.
open
=
kbd_open
,
.
release
=
kbd_close
,
.
fasync
=
kbd_fasync
,
};
void
__init
keyboard_zsinit
(
void
(
*
put_char
)(
unsigned
char
))
...
...
drivers/sbus/char/sunmouse.c
View file @
1add29dd
...
...
@@ -587,13 +587,13 @@ sun_mouse_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsig
}
struct
file_operations
sun_mouse_fops
=
{
read:
sun_mouse_read
,
write:
sun_mouse_write
,
poll:
sun_mouse_poll
,
ioctl:
sun_mouse_ioctl
,
open:
sun_mouse_open
,
release:
sun_mouse_close
,
fasync:
sun_mouse_fasync
,
.
read
=
sun_mouse_read
,
.
write
=
sun_mouse_write
,
.
poll
=
sun_mouse_poll
,
.
ioctl
=
sun_mouse_ioctl
,
.
open
=
sun_mouse_open
,
.
release
=
sun_mouse_close
,
.
fasync
=
sun_mouse_fasync
,
};
static
struct
miscdevice
sun_mouse_mouse
=
{
...
...
drivers/sbus/char/uctrl.c
View file @
1add29dd
...
...
@@ -224,10 +224,10 @@ void uctrl_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
static
struct
file_operations
uctrl_fops
=
{
owner:
THIS_MODULE
,
llseek:
no_llseek
,
ioctl:
uctrl_ioctl
,
open:
uctrl_open
,
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
ioctl
=
uctrl_ioctl
,
.
open
=
uctrl_open
,
};
static
struct
miscdevice
uctrl_dev
=
{
...
...
drivers/sbus/char/vfc_dev.c
View file @
1add29dd
...
...
@@ -643,12 +643,12 @@ static int vfc_mmap(struct inode *inode, struct file *file,
static
struct
file_operations
vfc_fops
=
{
owner:
THIS_MODULE
,
llseek:
no_llseek
,
ioctl:
vfc_ioctl
,
mmap:
vfc_mmap
,
open:
vfc_open
,
release:
vfc_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
ioctl
=
vfc_ioctl
,
.
mmap
=
vfc_mmap
,
.
open
=
vfc_open
,
.
release
=
vfc_release
,
};
static
int
vfc_probe
(
void
)
...
...
drivers/sbus/char/zs.c
View file @
1add29dd
...
...
@@ -2869,12 +2869,12 @@ static int __init zs_console_setup(struct console *con, char *options)
}
static
struct
console
zs_console
=
{
name:
"ttyS"
,
write:
zs_console_write
,
device:
zs_console_device
,
setup:
zs_console_setup
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
name
=
"ttyS"
,
.
write
=
zs_console_write
,
.
device
=
zs_console_device
,
.
setup
=
zs_console_setup
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
static
int
__init
zs_console_init
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment