src/sys/dev/gpio/gpioiic.c
/*
 * Reset bus by setting SDA first and then SCL. 
 * Must always be called with gpio bus locked.
 */
Reset bus by setting SDA first and then SCL.
Must always be called with gpio bus locked.
Reset bus by setting SDA first and then SCL . Must always be called with gpio bus locked .
static void
gpioiic_reset_bus(device_t dev)
{
	struct gpioiic_softc		*sc = device_get_softc(dev);
	GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin,
	    GPIO_PIN_INPUT);
	GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->scl_pin,
	    GPIO_PIN_INPUT);
}
static void gpioiic_reset_bus ( device_t dev ) { struct gpioiic_softc * sc = device_get_softc ( dev ) ; GPIOBUS_PIN_SETFLAGS ( sc -> sc_busdev , sc -> sc_dev , sc -> sda_pin , GPIO_PIN_INPUT ) ; GPIOBUS_PIN_SETFLAGS ( sc -> sc_busdev , sc -> sc_dev , sc -> scl_pin , GPIO_PIN_INPUT ) ; }
Reset bus by setting SDA first and then SCL.
Reset bus by setting SDA first and then SCL .