OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877bef7
)
Input: pwm-beeper - remove useless call to pwm_config()
author
Olivier Sobrie
<olivier@sobrie.be>
Thu, 12 Mar 2015 21:47:13 +0000
(14:47 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 12 Mar 2015 21:53:11 +0000
(14:53 -0700)
Calling pwm_config() with a period equal to zero always results in
error (-EINVAL) and pwm chip config method is never called.
Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pwm-beeper.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/pwm-beeper.c
b/drivers/input/misc/pwm-beeper.c
index
a562071
..
e82edf8
100644
(file)
--- a/
drivers/input/misc/pwm-beeper.c
+++ b/
drivers/input/misc/pwm-beeper.c
@@
-50,7
+50,6
@@
static int pwm_beeper_event(struct input_dev *input,
}
if (value == 0) {
- pwm_config(beeper->pwm, 0, 0);
pwm_disable(beeper->pwm);
} else {
period = HZ_TO_NANOSECONDS(value);