Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2007 17:18:10 GMT
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 122967 for review
Message-ID:  <200707051718.l65HIAnq004013@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122967

Change 122967 by rpaulo@rpaulo_epsilon on 2007/07/05 17:17:50

	Style cleanups.

Affected files ...

.. //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#8 edit

Differences ...

==== //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#8 (text+ko) ====

@@ -23,7 +23,7 @@
  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#7 $
+ * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#8 $
  *
  */
 
@@ -123,7 +123,7 @@
 		if (vendor == backlight_models[i].bm_vendor &&
 		    devid == backlight_models[i].bm_devid &&
 		    !strncmp(model, backlight_models[i].bm_model,
-			     strlen(model))) {
+			strlen(model))) {
 			freeenv(model);
 			return &backlight_models[i];
 		}
@@ -177,10 +177,10 @@
 
 	sysctl_ctx_init(&sc->sc_sysctl_ctx);
 	sc->sc_sysctl_tree = SYSCTL_ADD_NODE(&sc->sc_sysctl_ctx,
-			         SYSCTL_STATIC_CHILDREN(_hw),
-				 OID_AUTO,
-				 device_get_name(dev),
-				 CTLFLAG_RD, 0, "");
+	    SYSCTL_STATIC_CHILDREN(_hw),
+	    OID_AUTO,
+	    device_get_name(dev),
+	    CTLFLAG_RD, 0, "");
 
 	SYSCTL_ADD_PROC(&sc->sc_sysctl_ctx,
 	    SYSCTL_CHILDREN(sc->sc_sysctl_tree),
@@ -257,7 +257,7 @@
 	uint32_t newlevel;
 
 	newlevel = (macbook_get_max(sc) << BACKLIGHT_MB_MAX_SHIFT) | 
-		(value << BACKLIGHT_MB_CUR_SHIFT);
+	    (value << BACKLIGHT_MB_CUR_SHIFT);
 
 	bus_write_4(sc->sc_res, BACKLIGHT_MB_OFFSET, newlevel);
 
@@ -273,14 +273,14 @@
 
 	rid = PCIR_BAR(0);
 	sc->sc_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
-					    RF_ACTIVE);
+	    RF_ACTIVE);
 	if (sc->sc_res == NULL)
 		return ENOMEM;
 
 	max = macbook_get_max(sc);
 	if (max > BACKLIGHT_MB_MAX) {
 		device_printf(dev, "maximum brightness level out of range"
-			      "(0x%x) - please send-pr\n", max);
+		    "(0x%x) - please send-pr\n", max);
 		return EINVAL;
 	}
 
@@ -336,7 +336,7 @@
 	curlevel = macbook_get_current(sc);
 
 	level = (curlevel - BACKLIGHT_MB_MIN) * 100 /
-		(BACKLIGHT_MB_MAX - BACKLIGHT_MB_MIN);
+	    (BACKLIGHT_MB_MAX - BACKLIGHT_MB_MIN);
 
 	error = sysctl_handle_int(oidp, &level, 0, req);
 
@@ -347,7 +347,7 @@
 			return EINVAL;
 		
 		curlevel = (level * (BACKLIGHT_MB_MAX - BACKLIGHT_MB_MIN) 
-			    / 100) + BACKLIGHT_MB_MIN;
+		    / 100) + BACKLIGHT_MB_MIN;
 		macbook_set_current(sc, curlevel);
 
 		*(unsigned int *)oidp->oid_arg1 = level;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707051718.l65HIAnq004013>