Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Trailing whitespace
details: https://anonhg.NetBSD.org/src/rev/f47de4fa9e47
branches: nick-nhusb
changeset: 334164:f47de4fa9e47
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Mar 21 10:14:45 2015 +0000
description:
Trailing whitespace
diffstat:
sys/dev/usb/slurm.c | 12 +++---
sys/dev/usb/uatp.c | 98 +++++++++++++++++++++++++-------------------------
sys/dev/usb/ubt.c | 14 +++---
sys/dev/usb/ukyopon.c | 10 ++--
sys/dev/usb/uyurex.c | 10 ++--
5 files changed, 72 insertions(+), 72 deletions(-)
diffs (truncated from 642 to 300 lines):
diff -r 2149cfb90948 -r f47de4fa9e47 sys/dev/usb/slurm.c
--- a/sys/dev/usb/slurm.c Sat Mar 21 10:07:15 2015 +0000
+++ b/sys/dev/usb/slurm.c Sat Mar 21 10:14:45 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slurm.c,v 1.1.18.2 2015/03/19 17:26:43 skrll Exp $ */
+/* $NetBSD: slurm.c,v 1.1.18.3 2015/03/21 10:14:45 skrll Exp $ */
/*
* Copyright (c) 2012 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: slurm.c,v 1.1.18.2 2015/03/19 17:26:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: slurm.c,v 1.1.18.3 2015/03/21 10:14:45 skrll Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -102,7 +102,7 @@
CFATTACH_DECL_NEW(slurm, sizeof(struct slurm_softc),
slurm_match, slurm_attach, slurm_detach, NULL);
-static int
+static int
slurm_match(device_t parent, cfdata_t match, void *aux)
{
const struct usbif_attach_arg * const uaa = aux;
@@ -117,7 +117,7 @@
return UMATCH_NONE;
}
-static void
+static void
slurm_attach(device_t parent, device_t self, void *aux)
{
struct slurm_softc * const sc = device_private(self);
@@ -145,7 +145,7 @@
radio_attach_mi(&slurm_radio, sc, self);
}
-static int
+static int
slurm_detach(device_t self, int flags)
{
struct slurm_softc * const sc = device_private(self);
@@ -202,7 +202,7 @@
slurm_search(void *v, int f)
{
struct slurm_softc * const sc = v;
-
+
return slurm_si470x_search(sc, f);
}
diff -r 2149cfb90948 -r f47de4fa9e47 sys/dev/usb/uatp.c
--- a/sys/dev/usb/uatp.c Sat Mar 21 10:07:15 2015 +0000
+++ b/sys/dev/usb/uatp.c Sat Mar 21 10:14:45 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uatp.c,v 1.10.4.1 2015/03/19 17:26:43 skrll Exp $ */
+/* $NetBSD: uatp.c,v 1.10.4.2 2015/03/21 10:14:45 skrll Exp $ */
/*-
* Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
* Apple's protocol gives more detailed sensor data that lets us detect
* multiple fingers to emulate multi-button mice and scroll wheels.
*/
-
+
/*
* Protocol
*
@@ -104,7 +104,7 @@
* Should make a struct uatp_motion for all that state.
* XXX Add hooks for ignoring trackpad input while typing.
*/
-
+
/*
* Classifying devices
*
@@ -144,9 +144,9 @@
* tweak hw.uatp0.x_sensors and hw.uatp0.y_sensors, up to a maximum
* of 32 for each value.
*/
-
+
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.10.4.1 2015/03/19 17:26:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.10.4.2 2015/03/21 10:14:45 skrll Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -179,7 +179,7 @@
fail; \
} \
} while (0)
-
+
#define UATP_DEBUG_ATTACH (1 << 0)
#define UATP_DEBUG_MISC (1 << 1)
#define UATP_DEBUG_WSMOUSE (1 << 2)
@@ -238,7 +238,7 @@
#define UATP_STATUS_BUTTON (1 << 0) /* Button pressed */
#define UATP_STATUS_BASE (1 << 2) /* Base sensor data */
#define UATP_STATUS_POST_RESET (1 << 4) /* Post-reset */
-
+
/* Forward declarations */
struct uatp_softc; /* Device driver state. */
@@ -340,7 +340,7 @@
int, int);
static int accelerate(struct uatp_softc *, unsigned int, unsigned int,
unsigned int, unsigned int, bool, int *);
-
+
struct uatp_knobs {
/*
* Button emulation. What do we do when two or three fingers
@@ -408,7 +408,7 @@
unsigned int three_finger_tap_buttons;
unsigned int tap_track_distance_limit;
};
-
+
static const struct uatp_knobs default_knobs = {
/*
* Button emulation. Fingers on the trackpad don't change it
@@ -473,7 +473,7 @@
.three_finger_tap_buttons = 0,
.tap_track_distance_limit = 200,
};
-
+
struct uatp_softc {
struct uhidev sc_hdev; /* USB parent. */
device_t sc_wsmousedev; /* Attached wsmouse device. */
@@ -522,7 +522,7 @@
uint32_t sc_debug_flags; /* Debugging output enabled. */
#endif
};
-
+
struct uatp_descriptor {
uint16_t vendor;
uint16_t product;
@@ -559,7 +559,7 @@
/* Called on spurious interrupts to reset. May be null. */
void (*reset)(struct uatp_softc *);
};
-
+
/* Known device parameters */
static const struct uatp_parameters fountain_parameters = {
@@ -617,7 +617,7 @@
.accumulate = accumulate_sample_2,
.reset = geyser34_deferred_reset,
};
-
+
/* Known device models */
#define APPLE_TRACKPAD(PRODUCT, DESCRIPTION, PARAMETERS) \
@@ -661,7 +661,7 @@
#undef MACBOOK_TRACKPAD
#undef POWERBOOK_TRACKPAD
#undef APPLE_TRACKPAD
-
+
/* Miscellaneous utilities */
static const struct uatp_descriptor *
@@ -722,7 +722,7 @@
sc->sc_w_remainder = 0;
sc->sc_track_distance = 0;
}
-
+
static unsigned int
uatp_x_sensors(const struct uatp_softc *sc)
{
@@ -764,7 +764,7 @@
else
return sc->sc_parameters->y_ratio;
}
-
+
static unsigned int
uatp_old_raw_weight(const struct uatp_softc *sc)
{
@@ -795,7 +795,7 @@
else
return 1;
}
-
+
static int
scale_motion(const struct uatp_softc *sc, int delta, int *remainder,
const unsigned int *multiplier, const unsigned int *divisor)
@@ -848,7 +848,7 @@
&sc->sc_knobs.fast_motion_multiplier,
&sc->sc_knobs.fast_motion_divisor);
}
-
+
/* Driver goop */
CFATTACH_DECL2_NEW(uatp, sizeof(struct uatp_softc), uatp_match, uatp_attach,
@@ -909,7 +909,7 @@
return UMATCH_VENDOR_PRODUCT_CONF_IFACE;
}
-
+
static void
uatp_attach(device_t parent, device_t self, void *aux)
{
@@ -977,7 +977,7 @@
sc->sc_wsmousedev = config_found_ia(self, "wsmousedev", &a,
wsmousedevprint);
}
-
+
/* Sysctl setup */
static void
@@ -1032,7 +1032,7 @@
"width of right edge for edge scrolling"))
goto err;
#endif
-
+
/*
* Multifinger tracking.
*/
@@ -1101,7 +1101,7 @@
if (!uatp_setup_sysctl_knob(sc, &sc->sc_knobs.motion_delay,
"motion_delay", "number of packets before motion kicks in"))
goto err;
-
+
/*
* Tapping.
*/
@@ -1152,7 +1152,7 @@
return true;
}
-
+
/* More driver goop */
static void
@@ -1210,7 +1210,7 @@
return 0;
}
-
+
/* wsmouse routines */
static int
@@ -1271,7 +1271,7 @@
/* XXX Implement any relevant wsmouse(4) ioctls. */
return EPASSTHROUGH;
}
-
+
/*
* The Geyser 3 and 4 models talk the generic USB HID mouse protocol by
* default. This mode switch makes them give raw sensor data instead
@@ -1304,7 +1304,7 @@
"error reading feature report: %s\n", usbd_errstr(status));
return;
}
-
+
#if UATP_DEBUG
if (sc->sc_debug_flags & UATP_DEBUG_RESET) {
unsigned int i;
@@ -1338,7 +1338,7 @@
return;
}
}
-
+
/*
* The Geyser 3 and 4 need to be reset periodically after we detect a
* continual flow of spurious interrupts. We use a USB task for this.
@@ -1383,7 +1383,7 @@
/* Reset by putting it into raw mode. Not sure why. */
geyser34_enable_raw_mode(sc);
}
-
+
/* Interrupt handler */
static void
Home |
Main Index |
Thread Index |
Old Index