diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 21:25:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 21:25:15 -0400 |
commit | 8691c130fae136bb2b7d0554422a2dff4c6ac169 (patch) | |
tree | 9c75c86ab04e66d756c55f37e594c3e27a2963d5 /drivers/input/misc/pwm-beeper.c | |
parent | c3a416a669eb83cfa9ccb52db030e72d654bd105 (diff) | |
parent | 85a3685852d9ac7d92be9d824533c915a4597fa4 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem updates from Dmitry Torokhov:
"You will get the following new drivers:
- Qualcomm PM8941 power key drver
- ChipOne icn8318 touchscreen controller driver
- Broadcom iProc touchscreen and keypad drivers
- Semtech SX8654 I2C touchscreen controller driver
ALPS driver now supports newer SS4 devices; Elantech got a fix that
should make it work on some ASUS laptops; and a slew of other
enhancements and random fixes"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (51 commits)
Input: alps - non interleaved V2 dualpoint has separate stick button bits
Input: alps - fix touchpad buttons getting stuck when used with trackpoint
Input: atkbd - document "no new force-release quirks" policy
Input: ALPS - make alps_get_pkt_id_ss4_v2() and others static
Input: ALPS - V7 devices can report 5-finger taps
Input: ALPS - add support for SS4 touchpad devices
Input: ALPS - refactor alps_set_abs_params_mt()
Input: elantech - fix absolute mode setting on some ASUS laptops
Input: atmel_mxt_ts - split out touchpad initialisation logic
Input: atmel_mxt_ts - implement support for T100 touch object
Input: cros_ec_keyb - fix clearing keyboard state on wakeup
Input: gscps2 - drop pci_ids dependency
Input: synaptics - allocate 3 slots to keep stability in image sensors
Input: Revert "Revert "synaptics - use dmax in input_mt_assign_slots""
Input: MT - make slot assignment work for overcovered solutions
mfd: tc3589x: enforce device-tree only mode
Input: tc3589x - localize platform data
Input: tsc2007 - Convert msecs to jiffies only once
Input: edt-ft5x06 - remove EV_SYN event report
Input: edt-ft5x06 - allow to setting the maximum axes value through the DT
...
Diffstat (limited to 'drivers/input/misc/pwm-beeper.c')
-rw-r--r-- | drivers/input/misc/pwm-beeper.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index a28ee70ff158..e82edf810d1f 100644 --- 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, | |||
50 | } | 50 | } |
51 | 51 | ||
52 | if (value == 0) { | 52 | if (value == 0) { |
53 | pwm_config(beeper->pwm, 0, 0); | ||
54 | pwm_disable(beeper->pwm); | 53 | pwm_disable(beeper->pwm); |
55 | } else { | 54 | } else { |
56 | period = HZ_TO_NANOSECONDS(value); | 55 | period = HZ_TO_NANOSECONDS(value); |
@@ -169,12 +168,6 @@ static int __maybe_unused pwm_beeper_resume(struct device *dev) | |||
169 | static SIMPLE_DEV_PM_OPS(pwm_beeper_pm_ops, | 168 | static SIMPLE_DEV_PM_OPS(pwm_beeper_pm_ops, |
170 | pwm_beeper_suspend, pwm_beeper_resume); | 169 | pwm_beeper_suspend, pwm_beeper_resume); |
171 | 170 | ||
172 | #ifdef CONFIG_PM_SLEEP | ||
173 | #define PWM_BEEPER_PM_OPS (&pwm_beeper_pm_ops) | ||
174 | #else | ||
175 | #define PWM_BEEPER_PM_OPS NULL | ||
176 | #endif | ||
177 | |||
178 | #ifdef CONFIG_OF | 171 | #ifdef CONFIG_OF |
179 | static const struct of_device_id pwm_beeper_match[] = { | 172 | static const struct of_device_id pwm_beeper_match[] = { |
180 | { .compatible = "pwm-beeper", }, | 173 | { .compatible = "pwm-beeper", }, |
@@ -187,7 +180,7 @@ static struct platform_driver pwm_beeper_driver = { | |||
187 | .remove = pwm_beeper_remove, | 180 | .remove = pwm_beeper_remove, |
188 | .driver = { | 181 | .driver = { |
189 | .name = "pwm-beeper", | 182 | .name = "pwm-beeper", |
190 | .pm = PWM_BEEPER_PM_OPS, | 183 | .pm = &pwm_beeper_pm_ops, |
191 | .of_match_table = of_match_ptr(pwm_beeper_match), | 184 | .of_match_table = of_match_ptr(pwm_beeper_match), |
192 | }, | 185 | }, |
193 | }; | 186 | }; |