12 #include <linux/kernel.h>
13 #include <linux/module.h>
14 #include <linux/device.h>
15 #include <linux/types.h>
22 #include "../w1_int.h"
23 #include "../w1_family.h"
64 return w1_ds2760_io(dev, buf, addr, count, 0);
69 return w1_ds2760_io(dev, buf, addr, count, 1);
72 static int w1_ds2760_eeprom_cmd(
struct device *dev,
int addr,
int cmd)
74 struct w1_slave *sl =
container_of(dev,
struct w1_slave, dev);
102 char *buf, loff_t off,
size_t count)
114 .read = w1_ds2760_read_bin,
119 static int w1_ds2760_add_slave(
struct w1_slave *sl)
134 goto pdev_alloc_failed;
136 pdev->
dev.parent = &sl->dev;
140 goto pdev_add_failed;
144 goto bin_attr_failed;
160 static void w1_ds2760_remove_slave(
struct w1_slave *sl)
171 .add_slave = w1_ds2760_add_slave,
172 .remove_slave = w1_ds2760_remove_slave,
175 static struct w1_family w1_ds2760_family = {
177 .fops = &w1_ds2760_fops,
180 static int __init w1_ds2760_init(
void)
183 " chip - (c) 2004-2005, Szabolcs Gyurko\n");
188 static void __exit w1_ds2760_exit(
void)