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
Kirill Smelkov
linux
Commits
baf8febe
Commit
baf8febe
authored
Nov 10, 2002
by
Art Haas
Committed by
Andy Grover
Nov 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 designated initializers for drivers/macintosh
parent
1ca97ab9
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
54 additions
and
54 deletions
+54
-54
drivers/macintosh/adb.c
drivers/macintosh/adb.c
+5
-5
drivers/macintosh/adbhid.c
drivers/macintosh/adbhid.c
+1
-1
drivers/macintosh/ans-lcd.c
drivers/macintosh/ans-lcd.c
+3
-3
drivers/macintosh/apm_emu.c
drivers/macintosh/apm_emu.c
+6
-6
drivers/macintosh/macserial.c
drivers/macintosh/macserial.c
+6
-6
drivers/macintosh/mediabay.c
drivers/macintosh/mediabay.c
+18
-18
drivers/macintosh/nvram.c
drivers/macintosh/nvram.c
+5
-5
drivers/macintosh/via-pmu.c
drivers/macintosh/via-pmu.c
+6
-6
drivers/macintosh/via-pmu68k.c
drivers/macintosh/via-pmu68k.c
+4
-4
No files found.
drivers/macintosh/adb.c
View file @
baf8febe
...
...
@@ -837,11 +837,11 @@ static ssize_t adb_write(struct file *file, const char *buf,
}
static
struct
file_operations
adb_fops
=
{
llseek:
no_llseek
,
read:
adb_read
,
write:
adb_write
,
open:
adb_open
,
release:
adb_release
,
.
llseek
=
no_llseek
,
.
read
=
adb_read
,
.
write
=
adb_write
,
.
open
=
adb_open
,
.
release
=
adb_release
,
};
static
void
...
...
drivers/macintosh/adbhid.c
View file @
baf8febe
...
...
@@ -55,7 +55,7 @@ extern struct pt_regs *kbd_pt_regs;
static
int
adb_message_handler
(
struct
notifier_block
*
,
unsigned
long
,
void
*
);
static
struct
notifier_block
adbhid_adb_notifier
=
{
notifier_call:
adb_message_handler
,
.
notifier_call
=
adb_message_handler
,
};
unsigned
char
adb_to_linux_keycodes
[
128
]
=
{
...
...
drivers/macintosh/ans-lcd.c
View file @
baf8febe
...
...
@@ -120,9 +120,9 @@ anslcd_open( struct inode * inode, struct file * file )
}
struct
file_operations
anslcd_fops
=
{
write:
anslcd_write
,
ioctl:
anslcd_ioctl
,
open:
anslcd_open
,
.
write
=
anslcd_write
,
.
ioctl
=
anslcd_ioctl
,
.
open
=
anslcd_open
,
};
static
struct
miscdevice
anslcd_dev
=
{
...
...
drivers/macintosh/apm_emu.c
View file @
baf8febe
...
...
@@ -499,12 +499,12 @@ static int apm_emu_get_info(char *buf, char **start, off_t fpos, int length)
}
static
struct
file_operations
apm_bios_fops
=
{
owner:
THIS_MODULE
,
read:
do_read
,
poll:
do_poll
,
ioctl:
do_ioctl
,
open:
do_open
,
release:
do_release
,
.
owner
=
THIS_MODULE
,
.
read
=
do_read
,
.
poll
=
do_poll
,
.
ioctl
=
do_ioctl
,
.
open
=
do_open
,
.
release
=
do_release
,
};
static
struct
miscdevice
apm_device
=
{
...
...
drivers/macintosh/macserial.c
View file @
baf8febe
...
...
@@ -3032,12 +3032,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
,
};
/*
...
...
drivers/macintosh/mediabay.c
View file @
baf8febe
...
...
@@ -706,30 +706,30 @@ mb_notify_sleep(struct pmu_sleep_notifier *self, int when)
/* Definitions of "ops" structures.
*/
static
struct
mb_ops
ohare_mb_ops
__pmacdata
=
{
name:
"Ohare"
,
content:
ohare_mb_content
,
power:
ohare_mb_power
,
setup_bus:
ohare_mb_setup_bus
,
un_reset:
ohare_mb_un_reset
,
un_reset_ide:
ohare_mb_un_reset_ide
,
.
name
=
"Ohare"
,
.
content
=
ohare_mb_content
,
.
power
=
ohare_mb_power
,
.
setup_bus
=
ohare_mb_setup_bus
,
.
un_reset
=
ohare_mb_un_reset
,
.
un_reset_ide
=
ohare_mb_un_reset_ide
,
};
static
struct
mb_ops
heathrow_mb_ops
__pmacdata
=
{
name:
"Heathrow"
,
content:
heathrow_mb_content
,
power:
heathrow_mb_power
,
setup_bus:
heathrow_mb_setup_bus
,
un_reset:
heathrow_mb_un_reset
,
un_reset_ide:
heathrow_mb_un_reset_ide
,
.
name
=
"Heathrow"
,
.
content
=
heathrow_mb_content
,
.
power
=
heathrow_mb_power
,
.
setup_bus
=
heathrow_mb_setup_bus
,
.
un_reset
=
heathrow_mb_un_reset
,
.
un_reset_ide
=
heathrow_mb_un_reset_ide
,
};
static
struct
mb_ops
keylargo_mb_ops
__pmacdata
=
{
name:
"KeyLargo"
,
content:
keylargo_mb_content
,
power:
keylargo_mb_power
,
setup_bus:
keylargo_mb_setup_bus
,
un_reset:
keylargo_mb_un_reset
,
un_reset_ide:
keylargo_mb_un_reset_ide
,
.
name
=
"KeyLargo"
,
.
content
=
keylargo_mb_content
,
.
power
=
keylargo_mb_power
,
.
setup_bus
=
keylargo_mb_setup_bus
,
.
un_reset
=
keylargo_mb_un_reset
,
.
un_reset_ide
=
keylargo_mb_un_reset_ide
,
};
/*
...
...
drivers/macintosh/nvram.c
View file @
baf8febe
...
...
@@ -101,11 +101,11 @@ static int nvram_ioctl(struct inode *inode, struct file *file,
}
struct
file_operations
nvram_fops
=
{
owner:
THIS_MODULE
,
llseek:
nvram_llseek
,
read:
read_nvram
,
write:
write_nvram
,
ioctl:
nvram_ioctl
,
.
owner
=
THIS_MODULE
,
.
llseek
=
nvram_llseek
,
.
read
=
read_nvram
,
.
write
=
write_nvram
,
.
ioctl
=
nvram_ioctl
,
};
static
struct
miscdevice
nvram_dev
=
{
...
...
drivers/macintosh/via-pmu.c
View file @
baf8febe
...
...
@@ -2688,12 +2688,12 @@ static int pmu_ioctl(struct inode * inode, struct file *filp,
}
static
struct
file_operations
pmu_device_fops
=
{
read:
pmu_read
,
write:
pmu_write
,
poll:
pmu_fpoll
,
ioctl:
pmu_ioctl
,
open:
pmu_open
,
release:
pmu_release
,
.
read
=
pmu_read
,
.
write
=
pmu_write
,
.
poll
=
pmu_fpoll
,
.
ioctl
=
pmu_ioctl
,
.
open
=
pmu_open
,
.
release
=
pmu_release
,
};
static
struct
miscdevice
pmu_device
=
{
...
...
drivers/macintosh/via-pmu68k.c
View file @
baf8febe
...
...
@@ -1040,10 +1040,10 @@ static int /*__openfirmware*/ pmu_ioctl(struct inode * inode, struct file *filp,
}
static struct file_operations pmu_device_fops = {
read:
pmu_read,
write:
pmu_write,
ioctl:
pmu_ioctl,
open:
pmu_open,
.read =
pmu_read,
.write =
pmu_write,
.ioctl =
pmu_ioctl,
.open =
pmu_open,
};
static struct miscdevice pmu_device = {
...
...
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