summaryrefslogtreecommitdiff
path: root/src/i830_sdvo.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-10-30 09:46:10 -0800
committerEric Anholt <eric@anholt.net>2006-10-30 09:46:10 -0800
commit71545db4614cfc4650acc4325912474e777c3b36 (patch)
treed0652836cd708f17acb60b3b1a5fbff53e12cbb2 /src/i830_sdvo.c
parentc357eca10ca1c535d305e1f3028471a912ae4102 (diff)
Return and use valid status bits for i830_sdvo_get_trained_inputs().
Diffstat (limited to 'src/i830_sdvo.c')
-rw-r--r--src/i830_sdvo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c
index ac5ae48e..87453b9b 100644
--- a/src/i830_sdvo.c
+++ b/src/i830_sdvo.c
@@ -277,7 +277,7 @@ i830_sdvo_get_trained_inputs(I830OutputPtr output, Bool *input_1, Bool *input_2)
i830_sdvo_write_cmd(output, SDVO_CMD_GET_TRAINED_INPUTS, NULL, 0);
- i830_sdvo_read_response(output, response, 2);
+ status = i830_sdvo_read_response(output, response, 2);
if (status != SDVO_CMD_STATUS_SUCCESS)
return FALSE;
@@ -607,7 +607,7 @@ i830_sdvo_post_set_mode(ScrnInfoPtr pScrn, I830OutputPtr output,
/* two 03s, 04 05, 10, 1d */
/* these contain the height and mode clock / 10 by the looks of it */
- i830_sdvo_get_trained_inputs(output, &input1, &input2);
+ status = i830_sdvo_get_trained_inputs(output, &input1, &input2);
/* Warn if the device reported failure to sync. */
if (status == SDVO_CMD_STATUS_SUCCESS && !input1) {