From 163c565527e8cda1f5a47c7fd63f04c80feaf3c7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 19 Apr 2007 13:00:03 -0700 Subject: Use I2C delay function instead of usleep. usleep isn't always available, and we have an existing delay mechanism available to use. --- src/i830_sdvo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/i830_sdvo.c') diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c index e1a4a442..43b55a09 100644 --- a/src/i830_sdvo.c +++ b/src/i830_sdvo.c @@ -302,7 +302,7 @@ i830_sdvo_read_response(xf86OutputPtr output, void *response, int response_len) if (status != SDVO_CMD_STATUS_PENDING) return status; - usleep(50); + intel_output->pI2CBus->I2CUDelay(intel_output->pI2CBus, 50); } return status; -- cgit v1.2.3