.remove_slave = w1_ds2781_remove_slave,
};
+static struct w1_family w1_ds2780_family = {
+ .fid = W1_FAMILY_DS2780,
+ .fops = &w1_ds2781_fops,
+};
+
static struct w1_family w1_ds2781_family = {
.fid = W1_FAMILY_DS2781,
.fops = &w1_ds2781_fops,
static int __init w1_ds2781_init(void)
{
idr_init(&bat_idr);
+ w1_register_family(&w1_ds2780_family);
return w1_register_family(&w1_ds2781_family);
}
static void __exit w1_ds2781_exit(void)
{
+ w1_unregister_family(&w1_ds2780_family);
w1_unregister_family(&w1_ds2781_family);
idr_destroy(&bat_idr);
}
#define W1_THERM_DS18B20 0x28
#define W1_EEPROM_DS2431 0x2D
#define W1_FAMILY_DS2760 0x30
+#define W1_FAMILY_DS2780 0x32
#define W1_FAMILY_DS2781 0x3D
#define MAXNAMELEN 32