View | Details | Raw Unified | Return to bug 207786 | Differences between
and this patch

Collapse All | Expand All

(-)sys/dev/gpio/gpioiic.c (-2 / +7 lines)
Lines 155-164 Link Here
155
{
155
{
156
	struct gpioiic_softc	*sc = device_get_softc(dev);
156
	struct gpioiic_softc	*sc = device_get_softc(dev);
157
	int error, how;
157
	int error, how;
158
	int iic_how;
158
159
159
	how = GPIOBUS_DONTWAIT;
160
	how = GPIOBUS_DONTWAIT;
160
	if (data != NULL && (int)*data == IIC_WAIT)
161
	if (data != NULL) {
161
		how = GPIOBUS_WAIT;
162
		memcpy(&iic_how, data, sizeof(iic_how));
163
		if (iic_how == IIC_WAIT)
164
			how = GPIOBUS_WAIT;
165
	}
166
162
	error = 0;
167
	error = 0;
163
	switch (index) {
168
	switch (index) {
164
	case IIC_REQUEST_BUS:
169
	case IIC_REQUEST_BUS:

Return to bug 207786