Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2014 17:55:04 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273281 - head/sys/arm/ti
Message-ID:  <201410191755.s9JHt4DM072809@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Sun Oct 19 17:55:04 2014
New Revision: 273281
URL: https://svnweb.freebsd.org/changeset/base/273281

Log:
  Style changes as pointed out by stas@.
  
  MFC after:	1 week

Modified:
  head/sys/arm/ti/ti_wdt.c

Modified: head/sys/arm/ti/ti_wdt.c
==============================================================================
--- head/sys/arm/ti/ti_wdt.c	Sun Oct 19 17:29:44 2014	(r273280)
+++ head/sys/arm/ti/ti_wdt.c	Sun Oct 19 17:55:04 2014	(r273281)
@@ -98,12 +98,14 @@ DRIVER_MODULE(ti_wdt, simplebus, ti_wdt_
 static volatile __inline uint32_t
 ti_wdt_reg_read(struct ti_wdt_softc *sc, uint32_t reg)
 {
+
 	return (bus_space_read_4(sc->sc_bt, sc->sc_bh, reg));
 }
 
 static __inline void
 ti_wdt_reg_write(struct ti_wdt_softc *sc, uint32_t reg, uint32_t val)
 {
+
 	bus_space_write_4(sc->sc_bt, sc->sc_bh, reg, val);
 }
 
@@ -113,14 +115,15 @@ ti_wdt_reg_write(struct ti_wdt_softc *sc
 static __inline void
 ti_wdt_reg_wait(struct ti_wdt_softc *sc, uint32_t bit)
 {
+
 	while (ti_wdt_reg_read(sc, TI_WDT_WWPS) & bit)
 		DELAY(10);
-
 }
 
 static __inline void
 ti_wdt_disable(struct ti_wdt_softc *sc)
 {
+
 	DPRINTF("disabling watchdog %p\n", sc);
 	ti_wdt_reg_write(sc, TI_WDT_WSPR, 0xAAAA);
 	ti_wdt_reg_wait(sc, TI_W_PEND_WSPR);
@@ -131,6 +134,7 @@ ti_wdt_disable(struct ti_wdt_softc *sc)
 static __inline void
 ti_wdt_enable(struct ti_wdt_softc *sc)
 {
+
 	DPRINTF("enabling watchdog %p\n", sc);
 	ti_wdt_reg_write(sc, TI_WDT_WSPR, 0xBBBB);
 	ti_wdt_reg_wait(sc, TI_W_PEND_WSPR);



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