#include <linux/device.h>
#include <linux/input.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/workqueue.h>
#define CUR_DRV_CAL_SEL …
#define SLP_LDOVIBR_PD_EN …
#define LDO_VIBR_PD …
#define SC2730_CUR_DRV_CAL_SEL …
#define SC2730_SLP_LDOVIBR_PD_EN …
#define SC2730_LDO_VIBR_PD …
struct sc27xx_vibra_data { … };
struct vibra_info { … };
static const struct sc27xx_vibra_data sc2731_data = …;
static const struct sc27xx_vibra_data sc2730_data = …;
static const struct sc27xx_vibra_data sc2721_data = …;
static void sc27xx_vibra_set(struct vibra_info *info, bool on)
{ … }
static int sc27xx_vibra_hw_init(struct vibra_info *info)
{ … }
static void sc27xx_vibra_play_work(struct work_struct *work)
{ … }
static int sc27xx_vibra_play(struct input_dev *input, void *data,
struct ff_effect *effect)
{ … }
static void sc27xx_vibra_close(struct input_dev *input)
{ … }
static int sc27xx_vibra_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id sc27xx_vibra_of_match[] = …;
MODULE_DEVICE_TABLE(of, sc27xx_vibra_of_match);
static struct platform_driver sc27xx_vibra_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;