twl6040-vibra.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | twl6040-vibra.c (8eaeb9393397be8eb700ab38a69c450975463b77) |
---|---|
1/* 2 * twl6040-vibra.c - TWL6040 Vibrator driver 3 * 4 * Author: Jorge Eduardo Candelaria <jorge.candelaria@ti.com> 5 * Author: Misael Lopez Cruz <misael.lopez@ti.com> 6 * 7 * Copyright: (C) 2011 Texas Instruments, Inc. 8 * --- 14 unchanged lines hidden (view full) --- 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 25 * 02110-1301 USA 26 * 27 */ 28#include <linux/module.h> 29#include <linux/platform_device.h> 30#include <linux/workqueue.h> | 1/* 2 * twl6040-vibra.c - TWL6040 Vibrator driver 3 * 4 * Author: Jorge Eduardo Candelaria <jorge.candelaria@ti.com> 5 * Author: Misael Lopez Cruz <misael.lopez@ti.com> 6 * 7 * Copyright: (C) 2011 Texas Instruments, Inc. 8 * --- 14 unchanged lines hidden (view full) --- 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 25 * 02110-1301 USA 26 * 27 */ 28#include <linux/module.h> 29#include <linux/platform_device.h> 30#include <linux/workqueue.h> |
31#include <linux/i2c/twl.h> | 31#include <linux/input.h> |
32#include <linux/mfd/twl6040.h> 33#include <linux/slab.h> 34#include <linux/delay.h> 35#include <linux/regulator/consumer.h> 36 37#define EFFECT_DIR_180_DEG 0x8000 38 39/* Recommended modulation index 85% */ --- 212 unchanged lines hidden (view full) --- 252} 253 254#endif 255 256static SIMPLE_DEV_PM_OPS(twl6040_vibra_pm_ops, twl6040_vibra_suspend, NULL); 257 258static int __devinit twl6040_vibra_probe(struct platform_device *pdev) 259{ | 32#include <linux/mfd/twl6040.h> 33#include <linux/slab.h> 34#include <linux/delay.h> 35#include <linux/regulator/consumer.h> 36 37#define EFFECT_DIR_180_DEG 0x8000 38 39/* Recommended modulation index 85% */ --- 212 unchanged lines hidden (view full) --- 252} 253 254#endif 255 256static SIMPLE_DEV_PM_OPS(twl6040_vibra_pm_ops, twl6040_vibra_suspend, NULL); 257 258static int __devinit twl6040_vibra_probe(struct platform_device *pdev) 259{ |
260 struct twl4030_vibra_data *pdata = pdev->dev.platform_data; | 260 struct twl6040_vibra_data *pdata = pdev->dev.platform_data; |
261 struct vibra_info *info; 262 int ret; 263 264 if (!pdata) { 265 dev_err(&pdev->dev, "platform_data not available\n"); 266 return -EINVAL; 267 } 268 --- 151 unchanged lines hidden --- | 261 struct vibra_info *info; 262 int ret; 263 264 if (!pdata) { 265 dev_err(&pdev->dev, "platform_data not available\n"); 266 return -EINVAL; 267 } 268 --- 151 unchanged lines hidden --- |