#include <linux/module.h>
#include <linux/parport.h>
#include <linux/string.h>
#include <linux/string_helpers.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
static const struct { … } classes[] = …;
static void pretty_print(struct parport *port, int device)
{ … }
static void parse_data(struct parport *port, int device, char *str)
{ … }
static ssize_t parport_read_device_id (struct parport *port, char *buffer,
size_t count)
{ … }
ssize_t parport_device_id (int devnum, char *buffer, size_t count)
{ … }