Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Fix inverted logic of card_detect_n bit, from FUK...
details: https://anonhg.NetBSD.org/src/rev/7ce01c406832
branches: trunk
changeset: 335222:7ce01c406832
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Dec 30 12:36:06 2014 +0000
description:
Fix inverted logic of card_detect_n bit, from FUKAUMI Naoki <fun%naobsd.org@localhost>.
diffstat:
sys/dev/ic/dwc_mmc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r edd72f02916b -r 7ce01c406832 sys/dev/ic/dwc_mmc.c
--- a/sys/dev/ic/dwc_mmc.c Tue Dec 30 12:14:34 2014 +0000
+++ b/sys/dev/ic/dwc_mmc.c Tue Dec 30 12:36:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_mmc.c,v 1.3 2014/12/29 23:58:25 jmcneill Exp $ */
+/* $NetBSD: dwc_mmc.c,v 1.4 2014/12/30 12:36:06 jmcneill Exp $ */
/*-
* Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_dwc_mmc.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.3 2014/12/29 23:58:25 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.4 2014/12/30 12:36:06 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -338,7 +338,7 @@
uint32_t cdetect;
cdetect = MMC_READ(sc, DWC_MMC_CDETECT_REG);
- return !!(cdetect & DWC_MMC_CDETECT_CARD_DETECT_N);
+ return !(cdetect & DWC_MMC_CDETECT_CARD_DETECT_N);
}
static int
Home |
Main Index |
Thread Index |
Old Index