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

// SPDX-License-Identifier: GPL-2.0-only
/*
 * twl4030-vibra.c - TWL4030 Vibrator driver
 *
 * Copyright (C) 2008-2010 Nokia Corporation
 *
 * Written by Henrik Saari <[email protected]>
 * Updates by Felipe Balbi <[email protected]>
 * Input by Jari Vanhala <[email protected]>
 */

#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>

/* MODULE ID2 */
#define LEDEN

/* ForceFeedback */
#define EFFECT_DIR_180_DEG

struct vibra_info {};

static void vibra_disable_leds(void)
{}

/* Powers H-Bridge and enables audio clk */
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)
{}

/*** Input/ForceFeedback ***/

static int vibra_play(struct input_dev *input, void *data,
		      struct ff_effect *effect)
{}

static void twl4030_vibra_close(struct input_dev *input)
{}

/*** Module ***/
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();