#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include "hid-wiimote.h"
struct wiimote_debug { … };
static ssize_t wiidebug_eeprom_read(struct file *f, char __user *u, size_t s,
loff_t *off)
{ … }
static const struct file_operations wiidebug_eeprom_fops = …;
static const char *wiidebug_drmmap[] = …;
static int wiidebug_drm_show(struct seq_file *f, void *p)
{ … }
static int wiidebug_drm_open(struct inode *i, struct file *f)
{ … }
static ssize_t wiidebug_drm_write(struct file *f, const char __user *u,
size_t s, loff_t *off)
{ … }
static const struct file_operations wiidebug_drm_fops = …;
int wiidebug_init(struct wiimote_data *wdata)
{ … }
void wiidebug_deinit(struct wiimote_data *wdata)
{ … }