diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-28 16:56:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-28 16:56:35 -0400 |
commit | 30304e5a79d424eb2c8707b3ff0e9b8bf6ab3e8f (patch) | |
tree | 63968fb97b86861e31922515395feef8a110f884 /drivers/input | |
parent | 750f77064a290beb162352077b52c61b04bcae0e (diff) | |
parent | b8589e2a8065b8e7773742b60ae96b63b757bb69 (diff) |
Merge tag 'mfd_3.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
Pull MFD changes from Samuel Ortiz:
- 4 new drivers: Freescale i.MX on-chip Anatop, Ricoh's RC5T583 and
TI's TPS65090 and TPS65217.
- New variants support (8420, 8520 ab9540), cleanups and bug fixes for
the abx500 and db8500 ST-E chipsets.
- Some minor fixes and update for the wm8994 from Mark.
- The beginning of a long term TWL cleanup effort coming from the TI
folks.
- Various fixes and cleanups for the s5m, TPS659xx, pm860x, and MAX8997
drivers.
Fix up trivial conflicts due to duplicate patches and header file
cleanups (<linux/device.h> removal etc).
* tag 'mfd_3.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (97 commits)
gpio/twl: Add DT support to gpio-twl4030 driver
gpio/twl: Allocate irq_desc dynamically for SPARSE_IRQ support
mfd: Detach twl6040 from the pmic mfd driver
mfd: Replace twl-* pr_ macros by the dev_ equivalent and do various cleanups
mfd: Micro-optimization on twl4030 IRQ handler
mfd: Make twl4030 SIH SPARSE_IRQ capable
mfd: Move twl-core IRQ allocation into twl[4030|6030]-irq files
mfd: Remove references already defineid in header file from twl-core
mfd: Remove unneeded header from twl-core
mfd: Make twl-core not depend on pdata->irq_base/end
ARM: OMAP2+: board-omap4-*: Do not use anymore TWL6030_IRQ_BASE in board files
mfd: Return twl6030_mmc_card_detect IRQ for board setup
Revert "mfd: Add platform data for MAX8997 haptic driver"
mfd: Add support for TPS65090
mfd: Add some da9052-i2c section annotations
mfd: Build rtc5t583 only if I2C config is selected to y.
mfd: Add anatop mfd driver
mfd: Fix compilation error in tps65910.h
mfd: Add 8420 variant to db8500-prcmu
mfd: Add 8520 PRCMU variant to db8500-prcmu
...
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/88pm860x_onkey.c | 26 | ||||
-rw-r--r-- | drivers/input/touchscreen/mc13783_ts.c | 11 |
2 files changed, 36 insertions, 1 deletions
diff --git a/drivers/input/misc/88pm860x_onkey.c b/drivers/input/misc/88pm860x_onkey.c index f2e0cbc5ab64..f9ce1835e4d7 100644 --- a/drivers/input/misc/88pm860x_onkey.c +++ b/drivers/input/misc/88pm860x_onkey.c | |||
@@ -105,6 +105,8 @@ static int __devinit pm860x_onkey_probe(struct platform_device *pdev) | |||
105 | } | 105 | } |
106 | 106 | ||
107 | platform_set_drvdata(pdev, info); | 107 | platform_set_drvdata(pdev, info); |
108 | device_init_wakeup(&pdev->dev, 1); | ||
109 | |||
108 | return 0; | 110 | return 0; |
109 | 111 | ||
110 | out_irq: | 112 | out_irq: |
@@ -129,10 +131,34 @@ static int __devexit pm860x_onkey_remove(struct platform_device *pdev) | |||
129 | return 0; | 131 | return 0; |
130 | } | 132 | } |
131 | 133 | ||
134 | #ifdef CONFIG_PM_SLEEP | ||
135 | static int pm860x_onkey_suspend(struct device *dev) | ||
136 | { | ||
137 | struct platform_device *pdev = to_platform_device(dev); | ||
138 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); | ||
139 | |||
140 | if (device_may_wakeup(dev)) | ||
141 | chip->wakeup_flag |= 1 << PM8607_IRQ_ONKEY; | ||
142 | return 0; | ||
143 | } | ||
144 | static int pm860x_onkey_resume(struct device *dev) | ||
145 | { | ||
146 | struct platform_device *pdev = to_platform_device(dev); | ||
147 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); | ||
148 | |||
149 | if (device_may_wakeup(dev)) | ||
150 | chip->wakeup_flag &= ~(1 << PM8607_IRQ_ONKEY); | ||
151 | return 0; | ||
152 | } | ||
153 | #endif | ||
154 | |||
155 | static SIMPLE_DEV_PM_OPS(pm860x_onkey_pm_ops, pm860x_onkey_suspend, pm860x_onkey_resume); | ||
156 | |||
132 | static struct platform_driver pm860x_onkey_driver = { | 157 | static struct platform_driver pm860x_onkey_driver = { |
133 | .driver = { | 158 | .driver = { |
134 | .name = "88pm860x-onkey", | 159 | .name = "88pm860x-onkey", |
135 | .owner = THIS_MODULE, | 160 | .owner = THIS_MODULE, |
161 | .pm = &pm860x_onkey_pm_ops, | ||
136 | }, | 162 | }, |
137 | .probe = pm860x_onkey_probe, | 163 | .probe = pm860x_onkey_probe, |
138 | .remove = __devexit_p(pm860x_onkey_remove), | 164 | .remove = __devexit_p(pm860x_onkey_remove), |
diff --git a/drivers/input/touchscreen/mc13783_ts.c b/drivers/input/touchscreen/mc13783_ts.c index ede02743eac1..48dc5b0d26f1 100644 --- a/drivers/input/touchscreen/mc13783_ts.c +++ b/drivers/input/touchscreen/mc13783_ts.c | |||
@@ -39,6 +39,7 @@ struct mc13783_ts_priv { | |||
39 | struct delayed_work work; | 39 | struct delayed_work work; |
40 | struct workqueue_struct *workq; | 40 | struct workqueue_struct *workq; |
41 | unsigned int sample[4]; | 41 | unsigned int sample[4]; |
42 | struct mc13xxx_ts_platform_data *touch; | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | static irqreturn_t mc13783_ts_handler(int irq, void *data) | 45 | static irqreturn_t mc13783_ts_handler(int irq, void *data) |
@@ -125,7 +126,9 @@ static void mc13783_ts_work(struct work_struct *work) | |||
125 | unsigned int channel = 12; | 126 | unsigned int channel = 12; |
126 | 127 | ||
127 | if (mc13xxx_adc_do_conversion(priv->mc13xxx, | 128 | if (mc13xxx_adc_do_conversion(priv->mc13xxx, |
128 | mode, channel, priv->sample) == 0) | 129 | mode, channel, |
130 | priv->touch->ato, priv->touch->atox, | ||
131 | priv->sample) == 0) | ||
129 | mc13783_ts_report_sample(priv); | 132 | mc13783_ts_report_sample(priv); |
130 | } | 133 | } |
131 | 134 | ||
@@ -179,6 +182,12 @@ static int __init mc13783_ts_probe(struct platform_device *pdev) | |||
179 | INIT_DELAYED_WORK(&priv->work, mc13783_ts_work); | 182 | INIT_DELAYED_WORK(&priv->work, mc13783_ts_work); |
180 | priv->mc13xxx = dev_get_drvdata(pdev->dev.parent); | 183 | priv->mc13xxx = dev_get_drvdata(pdev->dev.parent); |
181 | priv->idev = idev; | 184 | priv->idev = idev; |
185 | priv->touch = dev_get_platdata(&pdev->dev); | ||
186 | if (!priv->touch) { | ||
187 | dev_err(&pdev->dev, "missing platform data\n"); | ||
188 | ret = -ENODEV; | ||
189 | goto err_free_mem; | ||
190 | } | ||
182 | 191 | ||
183 | /* | 192 | /* |
184 | * We need separate workqueue because mc13783_adc_do_conversion | 193 | * We need separate workqueue because mc13783_adc_do_conversion |