#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/types.h>
#include <linux/platform_device.h>
#include <linux/mutex.h>
#include <linux/w1.h>
#include "w1_ds2781.h"
#define W1_FAMILY_DS2781 …
static int w1_ds2781_do_io(struct device *dev, char *buf, int addr,
size_t count, int io)
{ … }
int w1_ds2781_io(struct device *dev, char *buf, int addr, size_t count,
int io)
{ … }
EXPORT_SYMBOL(…);
int w1_ds2781_eeprom_cmd(struct device *dev, int addr, int cmd)
{ … }
EXPORT_SYMBOL(…);
static ssize_t w1_slave_read(struct file *filp, struct kobject *kobj,
struct bin_attribute *bin_attr, char *buf,
loff_t off, size_t count)
{ … }
static BIN_ATTR_RO(w1_slave, DS2781_DATA_SIZE);
static struct bin_attribute *w1_ds2781_bin_attrs[] = …;
static const struct attribute_group w1_ds2781_group = …;
static const struct attribute_group *w1_ds2781_groups[] = …;
static int w1_ds2781_add_slave(struct w1_slave *sl)
{ … }
static void w1_ds2781_remove_slave(struct w1_slave *sl)
{ … }
static const struct w1_family_ops w1_ds2781_fops = …;
static struct w1_family w1_ds2781_family = …;
module_w1_family(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;