Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 2015 19:22:13 +0000 (UTC)
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284190 - head/sys/arm/ti/am335x
Message-ID:  <201506091922.t59JMDPV069090@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sobomax
Date: Tue Jun  9 19:22:13 2015
New Revision: 284190
URL: https://svnweb.freebsd.org/changeset/base/284190

Log:
  "status_reg.acpwr ? 1 : 0" is now the same as just "status_reg.acpwr".

Modified:
  head/sys/arm/ti/am335x/am335x_pmic.c

Modified: head/sys/arm/ti/am335x/am335x_pmic.c
==============================================================================
--- head/sys/arm/ti/am335x/am335x_pmic.c	Tue Jun  9 19:17:33 2015	(r284189)
+++ head/sys/arm/ti/am335x/am335x_pmic.c	Tue Jun  9 19:22:13 2015	(r284190)
@@ -131,7 +131,7 @@ am335x_pmic_intr(void *arg)
 		shutdown_nice(RB_POWEROFF);
 	if (int_reg.aci) {
 		snprintf(notify_buf, sizeof(notify_buf), "notify=0x%02x",
-		    status_reg.acpwr ? 1 : 0);
+		    status_reg.acpwr);
 		devctl_notify_f("ACPI", "ACAD", "power", notify_buf, M_NOWAIT);
 	}
 }



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