Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2009 06:32:30 +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: r189725 - head/sys/dev/ppbus
Message-ID:  <200903120632.n2C6WUSS019362@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Thu Mar 12 06:32:30 2009
New Revision: 189725
URL: http://svn.freebsd.org/changeset/base/189725

Log:
  Make the bit-bang callbacks for i2c implementation match their prototypes.

Modified:
  head/sys/dev/ppbus/lpbb.c

Modified: head/sys/dev/ppbus/lpbb.c
==============================================================================
--- head/sys/dev/ppbus/lpbb.c	Thu Mar 12 06:30:59 2009	(r189724)
+++ head/sys/dev/ppbus/lpbb.c	Thu Mar 12 06:32:30 2009	(r189725)
@@ -93,7 +93,7 @@ lpbb_attach(device_t dev)
 }
 
 static int
-lpbb_callback(device_t dev, int index, caddr_t *data)
+lpbb_callback(device_t dev, int index, caddr_t data)
 {
 	device_t ppbus = device_get_parent(dev);
 	int error = 0;
@@ -165,7 +165,7 @@ lpbb_getsda(device_t dev)
 }
 
 static void
-lpbb_setsda(device_t dev, char val)
+lpbb_setsda(device_t dev, int val)
 {
 	device_t ppbus = device_get_parent(dev);
 
@@ -178,7 +178,7 @@ lpbb_setsda(device_t dev, char val)
 }
 
 static void
-lpbb_setscl(device_t dev, unsigned char val)
+lpbb_setscl(device_t dev, int val)
 {
 	device_t ppbus = device_get_parent(dev);
 



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