diff --git a/sys/dev/ow/ow.h b/sys/dev/ow/ow.h index 18621e74153..f08c09893a5 100644 --- a/sys/dev/ow/ow.h +++ b/sys/dev/ow/ow.h @@ -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 *) diff --git a/sys/dev/ow/ow_temp.c b/sys/dev/ow/ow_temp.c index b284aabe89a..f1f34d7e71f 100644 --- a/sys/dev/ow/ow_temp.c +++ b/sys/dev/ow/ow_temp.c @@ -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 } }; diff --git a/sys/dev/ow/own.h b/sys/dev/ow/own.h index c7cc441168d..c8d28a7b485 100644 --- a/sys/dev/ow/own.h +++ b/sys/dev/ow/own.h @@ -30,7 +30,6 @@ #include "own_if.h" - #define READ_ROM 0x33 #define MATCH_ROM 0x55 #define SKIP_ROM 0xcc