[PATCH xf86-video-r128 4/4] Move R128RestoreDACRegisters to r128_output.c

Kevin Brace kevinbrace at gmx.com
Sun Jun 17 17:39:33 UTC 2018


r128_output.c is the more logical place this function should be located.

Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/r128_driver.c | 10 ----------
 src/r128_output.c | 10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/r128_driver.c b/src/r128_driver.c
index 3a20bbd..66920fb 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -2144,16 +2144,6 @@ void R128RestoreCommonRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
     OUTREG(R128_CONFIG_CNTL,          restore->config_cntl);
 }
 
-/* Write DAC registers */
-void R128RestoreDACRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
-{
-    R128InfoPtr   info      = R128PTR(pScrn);
-    unsigned char *R128MMIO = info->MMIO;
-
-    OUTREGP(R128_DAC_CNTL, restore->dac_cntl,
-	    R128_DAC_RANGE_CNTL | R128_DAC_BLANKING);
-}
-
 /* Write RMX registers */
 void R128RestoreRMXRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
 {
diff --git a/src/r128_output.c b/src/r128_output.c
index cfcd926..41a2533 100644
--- a/src/r128_output.c
+++ b/src/r128_output.c
@@ -62,6 +62,16 @@ void R128InitDACRegisters(R128SavePtr orig, R128SavePtr save, xf86OutputPtr outp
                       (info->dac6bits      ? 0 : R128_DAC_8BIT_EN));
 }
 
+/* Write DAC registers */
+void R128RestoreDACRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
+{
+    R128InfoPtr   info      = R128PTR(pScrn);
+    unsigned char *R128MMIO = info->MMIO;
+
+    OUTREGP(R128_DAC_CNTL, restore->dac_cntl,
+        R128_DAC_RANGE_CNTL | R128_DAC_BLANKING);
+}
+
 static void r128_dpms(xf86OutputPtr output, int mode)
 {
     switch(mode) {
-- 
2.7.4



More information about the xorg-driver-ati mailing list