Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2009 22:50:23 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188461 - head/sys/dev/iicbus
Message-ID:  <200902102250.n1AMoN4P006678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Feb 10 22:50:23 2009
New Revision: 188461
URL: http://svn.freebsd.org/changeset/base/188461

Log:
  Fix iicbus_intr, iicbus_write and device_read_ivar prototypes...

Modified:
  head/sys/dev/iicbus/if_ic.c
  head/sys/dev/iicbus/iicbb.c
  head/sys/dev/iicbus/iicbus.c
  head/sys/dev/iicbus/iicsmb.c

Modified: head/sys/dev/iicbus/if_ic.c
==============================================================================
--- head/sys/dev/iicbus/if_ic.c	Tue Feb 10 22:46:36 2009	(r188460)
+++ head/sys/dev/iicbus/if_ic.c	Tue Feb 10 22:50:23 2009	(r188461)
@@ -105,7 +105,7 @@ static int icioctl(struct ifnet *, u_lon
 static int icoutput(struct ifnet *, struct mbuf *, struct sockaddr *,
 		struct rtentry *);
 
-static void icintr(device_t, int, char *);
+static int icintr(device_t, int, char *);
 
 static device_method_t ic_methods[] = {
 	/* device interface */
@@ -272,7 +272,7 @@ icioctl(struct ifnet *ifp, u_long cmd, c
 /*
  * icintr()
  */
-static void
+static int
 icintr(device_t dev, int event, char *ptr)
 {
 	struct ic_softc *sc = (struct ic_softc *)device_get_softc(dev);
@@ -346,7 +346,7 @@ icintr(device_t dev, int event, char *pt
 	}
 
 	mtx_unlock(&sc->ic_lock);
-	return;
+	return (0);
 }
 
 /*

Modified: head/sys/dev/iicbus/iicbb.c
==============================================================================
--- head/sys/dev/iicbus/iicbb.c	Tue Feb 10 22:46:36 2009	(r188460)
+++ head/sys/dev/iicbus/iicbb.c	Tue Feb 10 22:50:23 2009	(r188461)
@@ -72,7 +72,7 @@ static int iicbb_probe(device_t);
 static int iicbb_callback(device_t, int, caddr_t);
 static int iicbb_start(device_t, u_char, int);
 static int iicbb_stop(device_t);
-static int iicbb_write(device_t, char *, int, int *, int);
+static int iicbb_write(device_t, const char *, int, int *, int);
 static int iicbb_read(device_t, char *, int, int *, int, int);
 static int iicbb_reset(device_t, u_char, u_char, u_char *);
 
@@ -372,7 +372,7 @@ iicbb_stop(device_t dev)
 }
 
 static int
-iicbb_write(device_t dev, char * buf, int len, int *sent, int timeout)
+iicbb_write(device_t dev, const char *buf, int len, int *sent, int timeout)
 {
 	int bytes, error = 0;
 

Modified: head/sys/dev/iicbus/iicbus.c
==============================================================================
--- head/sys/dev/iicbus/iicbus.c	Tue Feb 10 22:46:36 2009	(r188460)
+++ head/sys/dev/iicbus/iicbus.c	Tue Feb 10 22:50:23 2009	(r188461)
@@ -173,7 +173,7 @@ iicbus_child_pnpinfo_str(device_t bus, d
 }
 
 static int
-iicbus_read_ivar(device_t bus, device_t child, int which, u_char *result)
+iicbus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
 {
 	struct iicbus_ivar *devi = IICBUS_IVAR(child);
 

Modified: head/sys/dev/iicbus/iicsmb.c
==============================================================================
--- head/sys/dev/iicbus/iicsmb.c	Tue Feb 10 22:46:36 2009	(r188460)
+++ head/sys/dev/iicbus/iicsmb.c	Tue Feb 10 22:50:23 2009	(r188461)
@@ -84,7 +84,7 @@ static int iicsmb_attach(device_t);
 static int iicsmb_detach(device_t);
 static void iicsmb_identify(driver_t *driver, device_t parent);
 
-static void iicsmb_intr(device_t dev, int event, char *buf);
+static int iicsmb_intr(device_t dev, int event, char *buf);
 static int iicsmb_callback(device_t dev, int index, void *data);
 static int iicsmb_quick(device_t dev, u_char slave, int how);
 static int iicsmb_sendb(device_t dev, u_char slave, char byte);
@@ -186,7 +186,7 @@ iicsmb_detach(device_t dev)
  *
  * iicbus interrupt handler
  */
-static void
+static int
 iicsmb_intr(device_t dev, int event, char *buf)
 {
 	struct iicsmb_softc *sc = (struct iicsmb_softc *)device_get_softc(dev);
@@ -252,7 +252,7 @@ end:
 	}
 	mtx_unlock(&sc->lock);
 
-	return;
+	return (0);
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902102250.n1AMoN4P006678>