Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/nvidia fdtbus_gpio_read handles pin polarity, s...
details: https://anonhg.NetBSD.org/src/rev/bd30c631a8b1
branches: trunk
changeset: 342297:bd30c631a8b1
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Dec 15 15:33:19 2015 +0000
description:
fdtbus_gpio_read handles pin polarity, so fix inverted test in tegra_sdhc_card_detect
diffstat:
sys/arch/arm/nvidia/tegra_sdhc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8fe61b4c6302 -r bd30c631a8b1 sys/arch/arm/nvidia/tegra_sdhc.c
--- a/sys/arch/arm/nvidia/tegra_sdhc.c Tue Dec 15 12:36:10 2015 +0000
+++ b/sys/arch/arm/nvidia/tegra_sdhc.c Tue Dec 15 15:33:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_sdhc.c,v 1.12 2015/12/13 17:39:19 jmcneill Exp $ */
+/* $NetBSD: tegra_sdhc.c,v 1.13 2015/12/15 15:33:19 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "locators.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.12 2015/12/13 17:39:19 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.13 2015/12/15 15:33:19 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -205,7 +205,7 @@
KASSERT(sc->sc_pin_cd != NULL);
- return !fdtbus_gpio_read(sc->sc_pin_cd);
+ return fdtbus_gpio_read(sc->sc_pin_cd);
}
static int
Home |
Main Index |
Thread Index |
Old Index