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
8c781d0f
Commit
8c781d0f
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] move mac-hid to C99
parent
7f6c0e49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
26 deletions
+44
-26
drivers/macintosh/mac_hid.c
drivers/macintosh/mac_hid.c
+44
-26
No files found.
drivers/macintosh/mac_hid.c
View file @
8c781d0f
...
...
@@ -25,38 +25,56 @@ static int mouse_last_keycode = 0;
#if defined(CONFIG_SYSCTL)
/* file(s) in /proc/sys/dev/mac_hid */
ctl_table
mac_hid_files
[]
=
{
ctl_table
mac_hid_files
[]
=
{
{
DEV_MAC_HID_MOUSE_BUTTON_EMULATION
,
"mouse_button_emulation"
,
&
mouse_emulate_buttons
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
.
ctl_name
=
DEV_MAC_HID_MOUSE_BUTTON_EMULATION
,
.
procname
=
"mouse_button_emulation"
,
.
data
=
&
mouse_emulate_buttons
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
DEV_MAC_HID_MOUSE_BUTTON2_KEYCODE
,
"mouse_button2_keycode"
,
&
mouse_button2_keycode
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
.
ctl_name
=
DEV_MAC_HID_MOUSE_BUTTON2_KEYCODE
,
.
procname
=
"mouse_button2_keycode"
,
.
data
=
&
mouse_button2_keycode
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
DEV_MAC_HID_MOUSE_BUTTON3_KEYCODE
,
"mouse_button3_keycode"
,
&
mouse_button3_keycode
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
.
ctl_name
=
DEV_MAC_HID_MOUSE_BUTTON3_KEYCODE
,
.
procname
=
"mouse_button3_keycode"
,
.
data
=
&
mouse_button3_keycode
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
0
}
{
.
ctl_name
=
0
}
};
/* dir in /proc/sys/dev */
ctl_table
mac_hid_dir
[]
=
{
{
DEV_MAC_HID
,
"mac_hid"
,
NULL
,
0
,
0555
,
mac_hid_files
},
{
0
}
ctl_table
mac_hid_dir
[]
=
{
{
.
ctl_name
=
DEV_MAC_HID
,
.
procname
=
"mac_hid"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
mac_hid_files
,
},
{
.
ctl_name
=
0
}
};
/* /proc/sys/dev itself, in case that is not there yet */
ctl_table
mac_hid_root_dir
[]
=
{
{
CTL_DEV
,
"dev"
,
NULL
,
0
,
0555
,
mac_hid_dir
},
{
0
}
ctl_table
mac_hid_root_dir
[]
=
{
{
.
ctl_name
=
CTL_DEV
,
.
procname
=
"dev"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
mac_hid_dir
,
},
{
.
ctl_name
=
0
}
};
static
struct
ctl_table_header
*
mac_hid_sysctl_header
;
...
...
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