Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Set iba_type properly. The only thing that ever...
details: https://anonhg.NetBSD.org/src/rev/d2bfcb2214f1
branches: trunk
changeset: 748728:d2bfcb2214f1
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Tue Nov 03 12:51:56 2009 +0000
description:
Set iba_type properly. The only thing that ever looks at this is the
'options I2C_SCAN' code in dev/i2c/i2c.c which is disabled by default.
diffstat:
sys/dev/pci/piixpm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 8ee42929b927 -r d2bfcb2214f1 sys/dev/pci/piixpm.c
--- a/sys/dev/pci/piixpm.c Tue Nov 03 11:04:32 2009 +0000
+++ b/sys/dev/pci/piixpm.c Tue Nov 03 12:51:56 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: piixpm.c,v 1.29 2009/03/18 16:00:19 cegger Exp $ */
+/* $NetBSD: piixpm.c,v 1.30 2009/11/03 12:51:56 pgoyette Exp $ */
/* $OpenBSD: piixpm.c,v 1.20 2006/02/27 08:25:02 grange Exp $ */
/*
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.29 2009/03/18 16:00:19 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.30 2009/11/03 12:51:56 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -233,6 +233,7 @@
sc->sc_i2c_tag.ic_exec = piixpm_i2c_exec;
memset(&iba, 0, sizeof(iba));
+ iba.iba_type = I2C_TYPE_SMBUS;
iba.iba_tag = &sc->sc_i2c_tag;
config_found_ia(self, "i2cbus", &iba, iicbus_print);
Home |
Main Index |
Thread Index |
Old Index