diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-17 13:06:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-17 13:06:02 -0500 |
commit | d797da41b2aceed5daa8cd2eee92cd74b2a0c652 (patch) | |
tree | f4de7daf5a81f425c057dd5a65a0e1b8056de5a9 /drivers/input/misc/pmic8xxx-pwrkey.c | |
parent | d6666be6f0c43efb9475d1d35fbef9f8be61b7b1 (diff) | |
parent | f20c86cd75f1c8c728dafd0218645ff3c5e8545d (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem updates from Dmitry Torokhov:
"Two new drivers for Elan hardware (for I2C touchpad and touchscreen
found in several Chromebooks and other devices), a driver for Goodix
touch panel, and small fixes to Cypress I2C trackpad and other input
drivers.
Also we switched to use __maybe_unused instead of gating suspend/
resume code with #ifdef guards to get better compile coverage"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (27 commits)
Input: gpio_keys - fix warning regarding uninitialized 'button' variable
Input: add support for Elan eKTH I2C touchscreens
Input: gpio_keys - fix warning regarding uninitialized 'irq' variable
Input: cyapa - use 'error' for error codes
Input: cyapa - fix resuming the device
Input: gpio_keys - add device tree support for interrupt only keys
Input: amikbd - allocate temporary keymap buffer on the stack
Input: amikbd - fix build if !CONFIG_HW_CONSOLE
Input: lm8323 - missing error check in lm8323_set_disable()
Input: initialize device counter variables with -1
Input: initialize input_no to -1 to avoid subtraction
Input: i8042 - do not try to load on Intel NUC D54250WYK
Input: atkbd - correct MSC_SCAN events for force_release keys
Input: cyapa - switch to using managed resources
Input: lifebook - use "static inline" instead of "inline" in lifebook.h
Input: touchscreen - use __maybe_unused instead of ifdef around suspend/resume
Input: mouse - use __maybe_unused instead of ifdef around suspend/resume
Input: misc - use __maybe_unused instead of ifdef around suspend/resume
Input: cap11xx - support for irq-active-high option
Input: cap11xx - add support for various cap11xx devices
...
Diffstat (limited to 'drivers/input/misc/pmic8xxx-pwrkey.c')
-rw-r--r-- | drivers/input/misc/pmic8xxx-pwrkey.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/input/misc/pmic8xxx-pwrkey.c b/drivers/input/misc/pmic8xxx-pwrkey.c index cb799177cbd5..c4ca20e63221 100644 --- a/drivers/input/misc/pmic8xxx-pwrkey.c +++ b/drivers/input/misc/pmic8xxx-pwrkey.c | |||
@@ -53,8 +53,7 @@ static irqreturn_t pwrkey_release_irq(int irq, void *_pwr) | |||
53 | return IRQ_HANDLED; | 53 | return IRQ_HANDLED; |
54 | } | 54 | } |
55 | 55 | ||
56 | #ifdef CONFIG_PM_SLEEP | 56 | static int __maybe_unused pmic8xxx_pwrkey_suspend(struct device *dev) |
57 | static int pmic8xxx_pwrkey_suspend(struct device *dev) | ||
58 | { | 57 | { |
59 | struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); | 58 | struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); |
60 | 59 | ||
@@ -64,7 +63,7 @@ static int pmic8xxx_pwrkey_suspend(struct device *dev) | |||
64 | return 0; | 63 | return 0; |
65 | } | 64 | } |
66 | 65 | ||
67 | static int pmic8xxx_pwrkey_resume(struct device *dev) | 66 | static int __maybe_unused pmic8xxx_pwrkey_resume(struct device *dev) |
68 | { | 67 | { |
69 | struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); | 68 | struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); |
70 | 69 | ||
@@ -73,7 +72,6 @@ static int pmic8xxx_pwrkey_resume(struct device *dev) | |||
73 | 72 | ||
74 | return 0; | 73 | return 0; |
75 | } | 74 | } |
76 | #endif | ||
77 | 75 | ||
78 | static SIMPLE_DEV_PM_OPS(pm8xxx_pwr_key_pm_ops, | 76 | static SIMPLE_DEV_PM_OPS(pm8xxx_pwr_key_pm_ops, |
79 | pmic8xxx_pwrkey_suspend, pmic8xxx_pwrkey_resume); | 77 | pmic8xxx_pwrkey_suspend, pmic8xxx_pwrkey_resume); |