diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:20:56 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:20:56 -0400 |
| commit | 53279f36dccffc26ff536003fd6bb97cc21c3b82 (patch) | |
| tree | 9d16e497c0e4158c7c054c479bd0e9ff0388d7bb /drivers/input/misc | |
| parent | a6e8c0a25377e27958b11b20e1927885ae7c9857 (diff) | |
| parent | 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff) | |
Merge tag 'v3.7-rc3' into next to sync up with recent USB and MFD changes
Diffstat (limited to 'drivers/input/misc')
| -rw-r--r-- | drivers/input/misc/ab8500-ponkey.c | 4 | ||||
| -rw-r--r-- | drivers/input/misc/atlas_btns.c | 17 | ||||
| -rw-r--r-- | drivers/input/misc/twl4030-vibra.c | 18 |
3 files changed, 19 insertions, 20 deletions
diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index f06231b7cab..84ec691c05a 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c | |||
| @@ -74,8 +74,8 @@ static int __devinit ab8500_ponkey_probe(struct platform_device *pdev) | |||
| 74 | 74 | ||
| 75 | ponkey->idev = input; | 75 | ponkey->idev = input; |
| 76 | ponkey->ab8500 = ab8500; | 76 | ponkey->ab8500 = ab8500; |
| 77 | ponkey->irq_dbf = ab8500_irq_get_virq(ab8500, irq_dbf); | 77 | ponkey->irq_dbf = irq_dbf; |
| 78 | ponkey->irq_dbr = ab8500_irq_get_virq(ab8500, irq_dbr); | 78 | ponkey->irq_dbr = irq_dbr; |
| 79 | 79 | ||
| 80 | input->name = "AB8500 POn(PowerOn) Key"; | 80 | input->name = "AB8500 POn(PowerOn) Key"; |
| 81 | input->dev.parent = &pdev->dev; | 81 | input->dev.parent = &pdev->dev; |
diff --git a/drivers/input/misc/atlas_btns.c b/drivers/input/misc/atlas_btns.c index 601f7372f9c..26f13131639 100644 --- a/drivers/input/misc/atlas_btns.c +++ b/drivers/input/misc/atlas_btns.c | |||
| @@ -151,22 +151,7 @@ static struct acpi_driver atlas_acpi_driver = { | |||
| 151 | .remove = atlas_acpi_button_remove, | 151 | .remove = atlas_acpi_button_remove, |
| 152 | }, | 152 | }, |
| 153 | }; | 153 | }; |
| 154 | 154 | module_acpi_driver(atlas_acpi_driver); | |
| 155 | static int __init atlas_acpi_init(void) | ||
| 156 | { | ||
| 157 | if (acpi_disabled) | ||
| 158 | return -ENODEV; | ||
| 159 | |||
| 160 | return acpi_bus_register_driver(&atlas_acpi_driver); | ||
| 161 | } | ||
| 162 | |||
| 163 | static void __exit atlas_acpi_exit(void) | ||
| 164 | { | ||
| 165 | acpi_bus_unregister_driver(&atlas_acpi_driver); | ||
| 166 | } | ||
| 167 | |||
| 168 | module_init(atlas_acpi_init); | ||
| 169 | module_exit(atlas_acpi_exit); | ||
| 170 | 155 | ||
| 171 | MODULE_AUTHOR("Jaya Kumar"); | 156 | MODULE_AUTHOR("Jaya Kumar"); |
| 172 | MODULE_LICENSE("GPL"); | 157 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c index fc0ed9b4342..2194a3c7236 100644 --- a/drivers/input/misc/twl4030-vibra.c +++ b/drivers/input/misc/twl4030-vibra.c | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
| 27 | #include <linux/jiffies.h> | 27 | #include <linux/jiffies.h> |
| 28 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
| 29 | #include <linux/of.h> | ||
| 29 | #include <linux/workqueue.h> | 30 | #include <linux/workqueue.h> |
| 30 | #include <linux/i2c/twl.h> | 31 | #include <linux/i2c/twl.h> |
| 31 | #include <linux/mfd/twl4030-audio.h> | 32 | #include <linux/mfd/twl4030-audio.h> |
| @@ -194,13 +195,26 @@ static int twl4030_vibra_resume(struct device *dev) | |||
| 194 | static SIMPLE_DEV_PM_OPS(twl4030_vibra_pm_ops, | 195 | static SIMPLE_DEV_PM_OPS(twl4030_vibra_pm_ops, |
| 195 | twl4030_vibra_suspend, twl4030_vibra_resume); | 196 | twl4030_vibra_suspend, twl4030_vibra_resume); |
| 196 | 197 | ||
| 198 | static bool twl4030_vibra_check_coexist(struct twl4030_vibra_data *pdata, | ||
| 199 | struct device_node *node) | ||
| 200 | { | ||
| 201 | if (pdata && pdata->coexist) | ||
| 202 | return true; | ||
| 203 | |||
| 204 | if (of_find_node_by_name(node, "codec")) | ||
| 205 | return true; | ||
| 206 | |||
| 207 | return false; | ||
| 208 | } | ||
| 209 | |||
| 197 | static int __devinit twl4030_vibra_probe(struct platform_device *pdev) | 210 | static int __devinit twl4030_vibra_probe(struct platform_device *pdev) |
| 198 | { | 211 | { |
| 199 | struct twl4030_vibra_data *pdata = pdev->dev.platform_data; | 212 | struct twl4030_vibra_data *pdata = pdev->dev.platform_data; |
| 213 | struct device_node *twl4030_core_node = pdev->dev.parent->of_node; | ||
| 200 | struct vibra_info *info; | 214 | struct vibra_info *info; |
| 201 | int ret; | 215 | int ret; |
| 202 | 216 | ||
| 203 | if (!pdata) { | 217 | if (!pdata && !twl4030_core_node) { |
| 204 | dev_dbg(&pdev->dev, "platform_data not available\n"); | 218 | dev_dbg(&pdev->dev, "platform_data not available\n"); |
| 205 | return -EINVAL; | 219 | return -EINVAL; |
| 206 | } | 220 | } |
| @@ -210,7 +224,7 @@ static int __devinit twl4030_vibra_probe(struct platform_device *pdev) | |||
| 210 | return -ENOMEM; | 224 | return -ENOMEM; |
| 211 | 225 | ||
| 212 | info->dev = &pdev->dev; | 226 | info->dev = &pdev->dev; |
| 213 | info->coexist = pdata->coexist; | 227 | info->coexist = twl4030_vibra_check_coexist(pdata, twl4030_core_node); |
| 214 | INIT_WORK(&info->play_work, vibra_play_work); | 228 | INIT_WORK(&info->play_work, vibra_play_work); |
| 215 | 229 | ||
| 216 | info->input_dev = input_allocate_device(); | 230 | info->input_dev = input_allocate_device(); |
