#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/idr.h>
#include <linux/w1.h>
#include "w1_ds2780.h"
#define W1_FAMILY_DS2780 …
static int w1_ds2780_do_io(struct device *dev, char *buf, int addr,
size_t count, int io)
{ … }
int w1_ds2780_io(struct device *dev, char *buf, int addr, size_t count,
int io)
{ … }
EXPORT_SYMBOL(…);
int w1_ds2780_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, DS2780_DATA_SIZE);
static struct bin_attribute *w1_ds2780_bin_attrs[] = …;
static const struct attribute_group w1_ds2780_group = …;
static const struct attribute_group *w1_ds2780_groups[] = …;
static int w1_ds2780_add_slave(struct w1_slave *sl)
{ … }
static void w1_ds2780_remove_slave(struct w1_slave *sl)
{ … }
static const struct w1_family_ops w1_ds2780_fops = …;
static struct w1_family w1_ds2780_family = …;
module_w1_family(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;