#include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/workqueue.h>
#include <linux/mfd/twl.h>
#include <linux/mfd/twl4030-audio.h>
#include <linux/input.h>
#include <linux/slab.h>
#define LEDEN …
#define EFFECT_DIR_180_DEG …
struct vibra_info { … };
static void vibra_disable_leds(void)
{ … }
static void vibra_enable(struct vibra_info *info)
{ … }
static void vibra_disable(struct vibra_info *info)
{ … }
static void vibra_play_work(struct work_struct *work)
{ … }
static int vibra_play(struct input_dev *input, void *data,
struct ff_effect *effect)
{ … }
static void twl4030_vibra_close(struct input_dev *input)
{ … }
static int twl4030_vibra_suspend(struct device *dev)
{ … }
static int twl4030_vibra_resume(struct device *dev)
{ … }
static DEFINE_SIMPLE_DEV_PM_OPS(twl4030_vibra_pm_ops,
twl4030_vibra_suspend, twl4030_vibra_resume);
static bool twl4030_vibra_check_coexist(struct device_node *parent)
{ … }
static int twl4030_vibra_probe(struct platform_device *pdev)
{ … }
static struct platform_driver twl4030_vibra_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;