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
e386b675
Commit
e386b675
authored
Oct 07, 2002
by
Geert Uytterhoeven
Committed by
Vojtech Pavlik
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Please apply this small clean up, too:
- Kill unused variable and end-of-line whitespace. - s/M68K/M68k/
parent
22f87362
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
drivers/input/misc/Config.in
drivers/input/misc/Config.in
+1
-1
drivers/input/misc/m68kspkr.c
drivers/input/misc/m68kspkr.c
+2
-3
No files found.
drivers/input/misc/Config.in
View file @
e386b675
...
...
@@ -9,6 +9,6 @@ if [ "$CONFIG_SPARC32" = "y" -o "$CONFIG_SPARC64" = "y" ]; then
dep_tristate ' SPARC Speaker support' CONFIG_INPUT_SPARCSPKR $CONFIG_INPUT $CONFIG_INPUT_MISC
fi
if [ "$CONFIG_M68K" = "y" ]; then
dep_tristate ' M68
K
Beeper support' CONFIG_INPUT_M68K_BEEP $CONFIG_INPUT $CONFIG_INPUT_MISC
dep_tristate ' M68
k
Beeper support' CONFIG_INPUT_M68K_BEEP $CONFIG_INPUT $CONFIG_INPUT_MISC
fi
dep_tristate ' User level driver support' CONFIG_INPUT_UINPUT $CONFIG_INPUT $CONFIG_INPUT_MISC
drivers/input/misc/m68kspkr.c
View file @
e386b675
...
...
@@ -31,7 +31,6 @@ static struct input_dev m68kspkr_dev;
static
int
m68kspkr_event
(
struct
input_dev
*
dev
,
unsigned
int
type
,
unsigned
int
code
,
int
value
)
{
unsigned
int
count
=
0
;
unsigned
long
flags
;
if
(
type
!=
EV_SND
)
return
-
1
;
...
...
@@ -40,11 +39,11 @@ static int m68kspkr_event(struct input_dev *dev, unsigned int type, unsigned int
case
SND_BELL
:
if
(
value
)
value
=
1000
;
case
SND_TONE
:
break
;
default:
return
-
1
;
}
}
if
(
value
>
20
&&
value
<
32767
)
count
=
1193182
/
value
;
mach_beep
(
count
,
-
1
);
return
0
;
...
...
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