diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-12-30 17:39:34 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-12-30 17:39:34 +0000 |
commit | c86e0732da12eb4c15d8bab268290ef5f3dfacb2 (patch) | |
tree | 63400dfad61e64af8dcc93f8965e6e6248882311 /sys/dev/i2c | |
parent | abfb0b0b4194e525d85da9c19463e9183acc8089 (diff) |
knf (replace lines of c++/c99 '//' comments with #if 0)
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 0ed2878e12d..089d82941a0 100644 --- a/sys/dev/i2c/i2c_scan.c +++ b/sys/dev/i2c/i2c_scan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i2c_scan.c,v 1.39 2005/12/30 09:45:20 kettenis Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.40 2005/12/30 17:39:33 reyk Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -463,10 +463,12 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) #ifdef I2C_DEBUG printf("%s: addr 0x%x", self->dv_xname, addr); -// for (i = 0; i < sizeof(probereg); i++) { -// if (iicprobe(probereg[i]) != 0xff) -// printf(" %02x=%02x", probereg[i], iicprobe(probereg[i])); -// } +#if 0 + for (i = 0; i < sizeof(probereg); i++) { + if (iicprobe(probereg[i]) != 0xff) + printf(" %02x=%02x", probereg[i], iicprobe(probereg[i])); + } +#endif for (i = 0; i <= 0xff; i++) { if (iicprobe(i) != 0xff) printf(" %02x=%02x", i, iicprobe(i)); |