aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/smbus
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:53:00 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:53:00 +0000
commit75d41981c0e9db8079219efd17c0179d4a093da2 (patch)
treef592a8265c79381a30a9d25cfb7181c74433cf54 /sys/dev/smbus
parenta7b66a9ff7eb1fd8a580745af7a48dd7ea5e8bd3 (diff)
Notes
Diffstat (limited to 'sys/dev/smbus')
-rw-r--r--sys/dev/smbus/smb.c3
-rw-r--r--sys/dev/smbus/smbconf.c2
-rw-r--r--sys/dev/smbus/smbus.c1
3 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c
index fc24d8f67c91..b9916dd29a7f 100644
--- a/sys/dev/smbus/smb.c
+++ b/sys/dev/smbus/smb.c
@@ -68,7 +68,6 @@ static device_method_t smb_methods[] = {
/* smbus interface */
DEVMETHOD(smbus_intr, smbus_generic_intr),
-
{ 0, 0 }
};
@@ -104,7 +103,7 @@ smb_probe(device_t dev)
device_set_desc(dev, "SMBus generic I/O");
return (BUS_PROBE_NOWILDCARD);
}
-
+
static int
smb_attach(device_t dev)
{
diff --git a/sys/dev/smbus/smbconf.c b/sys/dev/smbus/smbconf.c
index da994e8fc4dd..129c9f38e174 100644
--- a/sys/dev/smbus/smbconf.c
+++ b/sys/dev/smbus/smbconf.c
@@ -68,7 +68,7 @@ smbus_error(int smb_error)
if (smb_error == SMB_ENOERR)
return (0);
-
+
if (smb_error & (SMB_ENOTSUPP))
error = ENODEV;
else if (smb_error & (SMB_ENOACK))
diff --git a/sys/dev/smbus/smbus.c b/sys/dev/smbus/smbus.c
index 7341f3bf5bdd..d6b4d9ab78b6 100644
--- a/sys/dev/smbus/smbus.c
+++ b/sys/dev/smbus/smbus.c
@@ -134,7 +134,6 @@ smbus_hinted_child(device_t bus, const char *dname, int dunit)
devi->addr = addr;
}
-
static int
smbus_child_location_str(device_t parent, device_t child, char *buf,
size_t buflen)