svn commit: r330405 - head/sys/dev/iicbus

Ian Lepore ian at FreeBSD.org
Sun Mar 4 19:25:55 UTC 2018


Author: ian
Date: Sun Mar  4 19:25:54 2018
New Revision: 330405
URL: https://svnweb.freebsd.org/changeset/base/330405

Log:
  Oops, fix a paste-o.

Modified:
  head/sys/dev/iicbus/ds13rtc.c

Modified: head/sys/dev/iicbus/ds13rtc.c
==============================================================================
--- head/sys/dev/iicbus/ds13rtc.c	Sun Mar  4 19:23:48 2018	(r330404)
+++ head/sys/dev/iicbus/ds13rtc.c	Sun Mar  4 19:25:54 2018	(r330405)
@@ -395,7 +395,7 @@ ds13rtc_gettime(device_t dev, struct timespec *ts)
 	if (sc->use_century)
 		bct.year += (tregs.month & DS13xx_B_MONTH_CENTURY) ? 0x100 : 0;
 
-	clock_dbgprint_bcd(sc->sc_dev, CLOCK_DBG_READ, &bct); 
+	clock_dbgprint_bcd(sc->dev, CLOCK_DBG_READ, &bct); 
 	err = clock_bcd_to_ts(&bct, ts, sc->use_ampm);
 
 	return (err);
@@ -423,7 +423,7 @@ ds13rtc_settime(device_t dev, struct timespec *ts)
 		return (write_timeword(sc, ts->tv_sec));
 
 	clock_ts_to_bcd(ts, &bct, sc->use_ampm);
-	clock_dbgprint_bcd(sc->sc_dev, CLOCK_DBG_WRITE, &bct); 
+	clock_dbgprint_bcd(sc->dev, CLOCK_DBG_WRITE, &bct); 
 
 	/* If the chip is in AMPM mode deal with the PM flag. */
 	pmflags = 0;


More information about the svn-src-head mailing list