[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree
zrouter-src-freebsd at zrouter.org
zrouter-src-freebsd at zrouter.org
Tue Mar 20 10:05:30 UTC 2012
details: http://zrouter.org/hg/FreeBSD/head//rev/a12561d9275a
changeset: 434:a12561d9275a
user: Aleksandr Rybalko <ray at ddteam.net>
date: Tue Mar 20 00:52:12 2012 +0200
description:
Whitespace cleanup.
diffstat:
head/sys/dev/gpio/gpiospi.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diffs (54 lines):
diff -r fe1aa2b56874 -r a12561d9275a head/sys/dev/gpio/gpiospi.c
--- a/head/sys/dev/gpio/gpiospi.c Tue Mar 20 00:40:54 2012 +0200
+++ b/head/sys/dev/gpio/gpiospi.c Tue Mar 20 00:52:12 2012 +0200
@@ -44,7 +44,6 @@
#include <dev/spibus/spibusvar.h>
#include "spibus_if.h"
-
#define GPIO_SPI_DEBUG
#ifdef GPIO_SPI_DEBUG
#define dprintf printf
@@ -67,7 +66,6 @@
static void gpio_spi_chip_activate(struct gpio_spi_softc *, int);
static void gpio_spi_chip_deactivate(struct gpio_spi_softc *, int);
-
SYSCTL_NODE(_hw, OID_AUTO, gpiospi, CTLFLAG_RD, 0,
"GPIO SPI driver parameters");
@@ -76,8 +74,6 @@
"delay - half clock time in uS");
TUNABLE_INT("hw.gpiospi.delay", &sysctl_delay);
-
-
static int
gpio_spi_probe(device_t dev)
{
@@ -167,7 +163,6 @@
GPIOBUS_RELEASE_BUS(sc->sc_busdev, sc->sc_dev);
GPIOBUS_UNLOCK_BUS(sc->sc_busdev);
-
device_add_child(dev, "spibus", -1);
return (bus_generic_attach(dev));
}
@@ -259,9 +254,7 @@
uint32_t mask, out = 0;
unsigned int bit;
-
/* called with locked gpiobus */
-
for (mask = 0x80; mask > 0; mask >>= 1) {
if ((mode == MODE_CPOL) || (mode == MODE_CPHA)) {
/* If mode 1 or 2 */
@@ -363,7 +356,6 @@
buf_in[i] = byte;
}
-
/* Return pins to mode default */
if ((devi->mode == MODE_CPOL) || (devi->mode == MODE_CPHA)) {
GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev,
More information about the Zrouter-src-freebsd
mailing list