[haiku-commits] r42207 - haiku/trunk/src/add-ons/accelerants/radeon_hd

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 16 Jun 2011 17:24:09 +0200 (CEST)

Author: kallisti5
Date: 2011-06-16 17:24:08 +0200 (Thu, 16 Jun 2011)
New Revision: 42207
Changeset: https://dev.haiku-os.org/changeset/42207

Modified:
   haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.cpp
   haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.h
   haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp
Log:
A few style fixes, no functional change

Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.cpp       2011-06-16 
15:10:52 UTC (rev 42206)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.cpp       2011-06-16 
15:24:08 UTC (rev 42207)
@@ -73,15 +73,18 @@
                while (list[i].pciIdMin != 0) {
                        if (list[i].pciIdMin <= info.device_id
                                && list[i].pciIdMax >= info.device_id) {
-                               if (*bandgap == 0) *bandgap = 
list[i].bandgap[dac][type];
-                               if (*whitefine == 0) *whitefine = 
list[i].whitefine[dac][type];
+                               if (*bandgap == 0)
+                                       *bandgap = list[i].bandgap[dac][type];
+                               if (*whitefine == 0)
+                                       *whitefine = 
list[i].whitefine[dac][type];
                                break;
                        }
                        i++;
                }
-               if (list[i].pciIdMin != 0)
+               if (list[i].pciIdMin != 0) {
                        TRACE("%s: found new BandGap / WhiteFine in table for 
card!\n",
                                __func__);
+               }
        }
 }
 
@@ -99,8 +102,10 @@
        DACGetElectrical(standard, dacIndex, &bandGap, &whiteFine);
 
        uint32 mask = 0;
-       if (bandGap) mask |= 0xFF << 16;
-       if (whiteFine) mask |= 0xFF << 8;
+       if (bandGap)
+               mask |= 0xFF << 16;
+       if (whiteFine)
+               mask |= 0xFF << 8;
 
        uint32 dacOffset = (dacIndex == 1) ? REG_DACB_OFFSET : REG_DACA_OFFSET;
 

Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.h
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.h 2011-06-16 15:10:52 UTC 
(rev 42206)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/dac.h 2011-06-16 15:24:08 UTC 
(rev 42207)
@@ -5,10 +5,10 @@
  * Authors:
  *      Alexander von Gluck, kallisti5@xxxxxxxxxxx
  */
-
 #ifndef RADEON_HD_DAC_H
 #define RADEON_HD_DAC_H
 
+
 // DAC Offsets
 #define REG_DACA_OFFSET 0
 #define REG_DACB_OFFSET 0x200

Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp       2011-06-16 
15:10:52 UTC (rev 42206)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp       2011-06-16 
15:24:08 UTC (rev 42207)
@@ -55,9 +55,10 @@
 {
        int i;
 
-       for (i = 0; table[i].feedbackDivider < 0xFFFF ; i++)
+       for (i = 0; table[i].feedbackDivider < 0xFFFF ; i++) {
                if (table[i].feedbackDivider >= feedbackDivider)
                        break;
+       }
 
        return table[i].control;
 }
@@ -445,9 +446,10 @@
 
        int i;
 
-       for (i = 0; i < PLL_CALIBRATE_WAIT; i++)
+       for (i = 0; i < PLL_CALIBRATE_WAIT; i++) {
                if (((Read32(PLL, pllControlReg) >> 20) & 0x03) == 0x03)
                        break;
+       }
 
        if (i >= PLL_CALIBRATE_WAIT) {
                if (Read32(PLL, pllControlReg) & 0x00100000) /* Calibration 
done? */


Other related posts:

  • » [haiku-commits] r42207 - haiku/trunk/src/add-ons/accelerants/radeon_hd - kallisti5