Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sandpoint/sandpoint Add more known I2C devices:



details:   https://anonhg.NetBSD.org/src/rev/89116f828b48
branches:  trunk
changeset: 763805:89116f828b48
user:      phx <phx%NetBSD.org@localhost>
date:      Mon Apr 04 18:01:08 2011 +0000

description:
Add more known I2C devices:
dlink: strtc
qnap: s390rtc

diffstat:

 sys/arch/sandpoint/sandpoint/iic_eumb.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r 5bdc0fc1c744 -r 89116f828b48 sys/arch/sandpoint/sandpoint/iic_eumb.c
--- a/sys/arch/sandpoint/sandpoint/iic_eumb.c   Mon Apr 04 17:59:59 2011 +0000
+++ b/sys/arch/sandpoint/sandpoint/iic_eumb.c   Mon Apr 04 18:01:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iic_eumb.c,v 1.11 2011/03/31 02:32:35 nisimura Exp $ */
+/* $NetBSD: iic_eumb.c,v 1.12 2011/04/04 18:01:08 phx Exp $ */
 
 /*-
  * Copyright (c) 2010,2011 Frank Wille.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iic_eumb.c,v 1.11 2011/03/31 02:32:35 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iic_eumb.c,v 1.12 2011/04/04 18:01:08 phx Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -59,11 +59,13 @@
 };
 
 static struct i2cdev rtcmodel[] = {
+   { "dlink",    "strtc",      0x68 },
    { "kurobox",  "rs5c372rtc", 0x32 },
+   { "qnap",     "s390rtc",    0x30 },
    { "synology", "rs5c372rtc", 0x32 },
 };
 
-void add_i2c_child_devices(device_t, const char *);
+static void add_i2c_child_devices(device_t, const char *);
 
 static int
 iic_eumb_match(device_t parent, cfdata_t cf, void *aux)
@@ -100,7 +102,7 @@
        motoi2c_attach_common(self, &sc->sc_motoi2c, NULL);
 }
 
-void
+static void
 add_i2c_child_devices(device_t self, const char *family)
 {
        struct i2cdev *rtc;



Home | Main Index | Thread Index | Old Index