#include <linux/device.h>
#include <linux/input.h>
#include <linux/jiffies.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/workqueue.h>
#include "input-poller.h"
struct input_dev_poller { … };
static void input_dev_poller_queue_work(struct input_dev_poller *poller)
{ … }
static void input_dev_poller_work(struct work_struct *work)
{ … }
void input_dev_poller_finalize(struct input_dev_poller *poller)
{ … }
void input_dev_poller_start(struct input_dev_poller *poller)
{ … }
void input_dev_poller_stop(struct input_dev_poller *poller)
{ … }
int input_setup_polling(struct input_dev *dev,
void (*poll_fn)(struct input_dev *dev))
{ … }
EXPORT_SYMBOL(…);
static bool input_dev_ensure_poller(struct input_dev *dev)
{ … }
void input_set_poll_interval(struct input_dev *dev, unsigned int interval)
{ … }
EXPORT_SYMBOL(…);
void input_set_min_poll_interval(struct input_dev *dev, unsigned int interval)
{ … }
EXPORT_SYMBOL(…);
void input_set_max_poll_interval(struct input_dev *dev, unsigned int interval)
{ … }
EXPORT_SYMBOL(…);
int input_get_poll_interval(struct input_dev *dev)
{ … }
EXPORT_SYMBOL(…);
static ssize_t input_dev_get_poll_interval(struct device *dev,
struct device_attribute *attr,
char *buf)
{ … }
static ssize_t input_dev_set_poll_interval(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR(poll, 0644,
input_dev_get_poll_interval, input_dev_set_poll_interval);
static ssize_t input_dev_get_poll_max(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR(max, 0444, input_dev_get_poll_max, NULL);
static ssize_t input_dev_get_poll_min(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR(min, 0444, input_dev_get_poll_min, NULL);
static umode_t input_poller_attrs_visible(struct kobject *kobj,
struct attribute *attr, int n)
{ … }
static struct attribute *input_poller_attrs[] = …;
struct attribute_group input_poller_attribute_group = …;