linux/drivers/input/misc/twl6040-vibra.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * twl6040-vibra.c - TWL6040 Vibrator driver
 *
 * Author:      Jorge Eduardo Candelaria <[email protected]>
 * Author:      Misael Lopez Cruz <[email protected]>
 *
 * Copyright:   (C) 2011 Texas Instruments, Inc.
 *
 * Based on twl4030-vibra.c by Henrik Saari <[email protected]>
 *				Felipe Balbi <[email protected]>
 *				Jari Vanhala <[email protected]>
 */
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/workqueue.h>
#include <linux/input.h>
#include <linux/mfd/twl6040.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/regulator/consumer.h>

#define EFFECT_DIR_180_DEG

/* Recommended modulation index 85% */
#define TWL6040_VIBRA_MOD

#define TWL6040_NUM_SUPPLIES

struct vibra_info {};

static irqreturn_t twl6040_vib_irq_handler(int irq, void *data)
{}

static void twl6040_vibra_enable(struct vibra_info *info)
{}

static void twl6040_vibra_disable(struct vibra_info *info)
{}

static u8 twl6040_vibra_code(int vddvib, int vibdrv_res, int motor_res,
			     int speed, int direction)
{}

static void twl6040_vibra_set_effect(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 twl6040_vibra_close(struct input_dev *input)
{}

static int twl6040_vibra_suspend(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(twl6040_vibra_pm_ops,
				twl6040_vibra_suspend, NULL);

static int twl6040_vibra_probe(struct platform_device *pdev)
{}

static struct platform_driver twl6040_vibra_driver =;
module_platform_driver();

MODULE_ALIAS();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_AUTHOR();