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

// SPDX-License-Identifier: GPL-2.0+
/*
 *  GPIO vibrator driver
 *
 *  Copyright (C) 2019 Luca Weiss <[email protected]>
 *
 *  Based on PWM vibrator driver:
 *  Copyright (C) 2017 Collabora Ltd.
 *
 *  Based on previous work from:
 *  Copyright (C) 2012 Dmitry Torokhov <[email protected]>
 *
 *  Based on PWM beeper driver:
 *  Copyright (C) 2010, Lars-Peter Clausen <[email protected]>
 */

#include <linux/gpio/consumer.h>
#include <linux/input.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>

struct gpio_vibrator {};

static int gpio_vibrator_start(struct gpio_vibrator *vibrator)
{}

static void gpio_vibrator_stop(struct gpio_vibrator *vibrator)
{}

static void gpio_vibrator_play_work(struct work_struct *work)
{}

static int gpio_vibrator_play_effect(struct input_dev *dev, void *data,
				     struct ff_effect *effect)
{}

static void gpio_vibrator_close(struct input_dev *input)
{}

static int gpio_vibrator_probe(struct platform_device *pdev)
{}

static int gpio_vibrator_suspend(struct device *dev)
{}

static int gpio_vibrator_resume(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(gpio_vibrator_pm_ops,
				gpio_vibrator_suspend, gpio_vibrator_resume);

#ifdef CONFIG_OF
static const struct of_device_id gpio_vibra_dt_match_table[] =;
MODULE_DEVICE_TABLE(of, gpio_vibra_dt_match_table);
#endif

static struct platform_driver gpio_vibrator_driver =;
module_platform_driver();

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