linux/drivers/input/misc/pwm-beeper.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright (C) 2010, Lars-Peter Clausen <[email protected]>
 *  PWM beeper driver
 */

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

struct pwm_beeper {};

#define HZ_TO_NANOSECONDS(x)

static int pwm_beeper_on(struct pwm_beeper *beeper, unsigned long period)
{}

static void pwm_beeper_off(struct pwm_beeper *beeper)
{}

static void pwm_beeper_work(struct work_struct *work)
{}

static int pwm_beeper_event(struct input_dev *input,
			    unsigned int type, unsigned int code, int value)
{}

static void pwm_beeper_stop(struct pwm_beeper *beeper)
{}

static void pwm_beeper_close(struct input_dev *input)
{}

static int pwm_beeper_probe(struct platform_device *pdev)
{}

static int pwm_beeper_suspend(struct device *dev)
{}

static int pwm_beeper_resume(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(pwm_beeper_pm_ops,
				pwm_beeper_suspend, pwm_beeper_resume);

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

static struct platform_driver pwm_beeper_driver =;
module_platform_driver();

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