/* Generates a write-0 or write-1 cycle and samples the level.  */
static u8 w1_touch_bit(struct w1_master *dev, int bit)
/* Generates a write-0 or write-1 cycle and samples the level.  */
static u8 w1_touch_bit(struct w1_master *dev, int bit)
{
	if (dev->bus_master->touch_bit)
		return dev->bus_master->touch_bit(dev->bus_master->data, bit);
	else if (bit)
		return w1_read_bit(dev);
	else {
		w1_write_bit(dev, 0);
		return 0;
	}
}