svn commit: r365183 - head/sys/dev/ow
Mateusz Guzik
mjg at FreeBSD.org
Tue Sep 1 22:01:33 UTC 2020
Author: mjg
Date: Tue Sep 1 22:01:32 2020
New Revision: 365183
URL: https://svnweb.freebsd.org/changeset/base/365183
Log:
ow: clean up empty lines in .c and .h files
Modified:
head/sys/dev/ow/ow.h
head/sys/dev/ow/ow_temp.c
head/sys/dev/ow/own.h
Modified: head/sys/dev/ow/ow.h
==============================================================================
--- head/sys/dev/ow/ow.h Tue Sep 1 22:01:17 2020 (r365182)
+++ head/sys/dev/ow/ow.h Tue Sep 1 22:01:32 2020 (r365183)
@@ -35,7 +35,7 @@ enum ow_device_ivars {
#define OW_ACCESSOR(var, ivar, type) \
__BUS_ACCESSOR(ow, var, OW, ivar, type);
-
+
OW_ACCESSOR(family, FAMILY, uint8_t)
OW_ACCESSOR(romid, ROMID, uint8_t *)
Modified: head/sys/dev/ow/ow_temp.c
==============================================================================
--- head/sys/dev/ow/ow_temp.c Tue Sep 1 22:01:17 2020 (r365182)
+++ head/sys/dev/ow/ow_temp.c Tue Sep 1 22:01:32 2020 (r365183)
@@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$");
#define RECALL_EE 0xb8
#define READ_SCRATCHPAD 0xbe
-
#define OW_TEMP_DONE 0x01
#define OW_TEMP_RUNNING 0x02
@@ -95,7 +94,7 @@ static int
ow_temp_read_scratchpad(device_t dev, uint8_t *scratch, int len)
{
struct ow_cmd cmd;
-
+
own_self_command(dev, &cmd, READ_SCRATCHPAD);
cmd.xpt_read_len = len;
own_command_wait(dev, &cmd);
@@ -115,7 +114,6 @@ ow_temp_convert_t(device_t dev)
return 0;
}
-
static int
ow_temp_read_power_supply(device_t dev, int *parasite)
{
@@ -262,7 +260,7 @@ ow_temp_detach(device_t dev)
msleep(sc->event_thread, &sc->temp_lock, PWAIT, "owtun", 0);
}
mtx_destroy(&sc->temp_lock);
-
+
return 0;
}
@@ -273,7 +271,6 @@ static device_method_t ow_temp_methods[] = {
DEVMETHOD(device_probe, ow_temp_probe),
DEVMETHOD(device_attach, ow_temp_attach),
DEVMETHOD(device_detach, ow_temp_detach),
-
{ 0, 0 }
};
Modified: head/sys/dev/ow/own.h
==============================================================================
--- head/sys/dev/ow/own.h Tue Sep 1 22:01:17 2020 (r365182)
+++ head/sys/dev/ow/own.h Tue Sep 1 22:01:32 2020 (r365183)
@@ -30,7 +30,6 @@
#include "own_if.h"
-
#define READ_ROM 0x33
#define MATCH_ROM 0x55
#define SKIP_ROM 0xcc
More information about the svn-src-all
mailing list