diff options
author | 2005-11-12 18:25:26 +0000 | |
---|---|---|
committer | 2005-11-12 18:25:26 +0000 | |
commit | 25a880109b80c5a3f8a58f31a195d01cc3a068d2 (patch) | |
tree | 5081364031a1716f82db7efa0eaa5624815536c8 /sys/dev/i2c | |
parent | spacing mostly (diff) | |
download | wireguard-openbsd-25a880109b80c5a3f8a58f31a195d01cc3a068d2.tar.xz wireguard-openbsd-25a880109b80c5a3f8a58f31a195d01cc3a068d2.zip |
Define attachment-like attribute i2c and attach lmtemp to that instead of iic.
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r-- | sys/dev/i2c/files.i2c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/i2c/files.i2c b/sys/dev/i2c/files.i2c index efce61dbcf6..318a45f4d52 100644 --- a/sys/dev/i2c/files.i2c +++ b/sys/dev/i2c/files.i2c @@ -1,7 +1,8 @@ -# $OpenBSD: files.i2c,v 1.4 2005/03/08 20:00:24 tdeval Exp $ +# $OpenBSD: files.i2c,v 1.5 2005/11/12 18:25:26 kettenis Exp $ # $NetBSD: files.i2c,v 1.3 2003/10/20 16:24:10 briggs Exp $ -device iic {addr, [size = -1]} +define i2c {} +device iic {addr, [size = -1]} : i2c attach iic at i2cbus file dev/i2c/i2c.c iic | i2cbus file dev/i2c/i2c_exec.c iic | i2cbus | i2cexec @@ -15,5 +16,5 @@ file dev/i2c/i2c_bitbang.c i2c_bitbang # National Semiconductor LM75/LM77 temperature sensor device lmtemp -attach lmtemp at iic +attach lmtemp at i2c file dev/i2c/lm75.c lmtemp |