diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2007-07-06 16:13:14 -0600 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2007-07-06 17:00:27 -0600 |
commit | f42add8948e2cee3d9f2edf580f260c42718fc0c (patch) | |
tree | b3671c8bd990e4dbb88f9e6d28ee90f65ea2b4c5 | |
parent | bff92101bd22fcb6a5c0e9da9be58105f7655be4 (diff) |
Remove the DCON sleep code
The DCON sleep code was introduced by a previous commit - for now that
will only live in the OLPC tree.
-rw-r--r-- | src/amd_lx_driver.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/amd_lx_driver.c b/src/amd_lx_driver.c index e10e3c8..8a19cde 100644 --- a/src/amd_lx_driver.c +++ b/src/amd_lx_driver.c @@ -1115,26 +1115,6 @@ LXLoadPalette(ScrnInfoPtr pScrni, #ifdef DPMSExtension -#include <stdio.h> -#include <unistd.h> - -#define DCON_SLEEP_FILE "/sys/devices/platform/dcon/sleep" - -/* Set up the OLPC DCON to sleep if so requested */ - -static void DCONSleep(int state) -{ - char val = (state) ? '1' : '0'; - FILE *stream = fopen(DCON_SLEEP_FILE, "w"); - if (stream == NULL) { - ErrorF("Couldn't open the DCON sleep file"); - return; - } - - fprintf(stream, "%c\n", val); - fclose(stream); -} - static void LXDPMSSet(ScrnInfoPtr pScrni, int mode, int flags) { @@ -1143,14 +1123,6 @@ LXDPMSSet(ScrnInfoPtr pScrni, int mode, int flags) if (!pScrni->vtSema) return; - /* For now - we use the presence of the DCON sleep file as a positive - indicator that the DCON is attached. This should be transitioned to - the device tree. - */ - - if (dconAvail == -1) - dconAvail = (!access(DCON_SLEEP_FILE, R_OK | W_OK)) ? 1 : 0; - switch (mode) { case DPMSModeOn: lx_enable_dac_power(pScrni, 1); |