svn commit: r284190 - head/sys/arm/ti/am335x
Maxim Sobolev
sobomax at FreeBSD.org
Tue Jun 9 19:22:14 UTC 2015
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);
}
}
More information about the svn-src-all
mailing list