Lines Matching refs:w1_ch
117 struct ds2482_w1_chan w1_ch[8]; member
496 data->w1_ch[idx].pdev = data; in ds2482_probe()
497 data->w1_ch[idx].channel = idx; in ds2482_probe()
500 data->w1_ch[idx].w1_bm.data = &data->w1_ch[idx]; in ds2482_probe()
501 data->w1_ch[idx].w1_bm.read_byte = ds2482_w1_read_byte; in ds2482_probe()
502 data->w1_ch[idx].w1_bm.write_byte = ds2482_w1_write_byte; in ds2482_probe()
503 data->w1_ch[idx].w1_bm.touch_bit = ds2482_w1_touch_bit; in ds2482_probe()
504 data->w1_ch[idx].w1_bm.triplet = ds2482_w1_triplet; in ds2482_probe()
505 data->w1_ch[idx].w1_bm.reset_bus = ds2482_w1_reset_bus; in ds2482_probe()
506 data->w1_ch[idx].w1_bm.set_pullup = ds2482_w1_set_pullup; in ds2482_probe()
508 err = w1_add_master_device(&data->w1_ch[idx].w1_bm); in ds2482_probe()
510 data->w1_ch[idx].pdev = NULL; in ds2482_probe()
519 if (data->w1_ch[idx].pdev != NULL) in ds2482_probe()
520 w1_remove_master_device(&data->w1_ch[idx].w1_bm); in ds2482_probe()
535 if (data->w1_ch[idx].pdev != NULL) in ds2482_remove()
536 w1_remove_master_device(&data->w1_ch[idx].w1_bm); in ds2482_remove()