summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-12-05 06:19:36 +0000
committerimp <imp@FreeBSD.org>2006-12-05 06:19:36 +0000
commitec5c7a4e2d98ea8bf431990ca781afc1ddfd7a2f (patch)
tree412f9b4166c09435974aa19767b6af0350e7e949
parentd4e519a36a0233b7206a8879f41929e3929c5279 (diff)
downloadFreeBSD-src-ec5c7a4e2d98ea8bf431990ca781afc1ddfd7a2f.zip
FreeBSD-src-ec5c7a4e2d98ea8bf431990ca781afc1ddfd7a2f.tar.gz
const poison
submitted by: john wehle
-rw-r--r--sys/dev/iicbus/iicbus_if.m2
-rw-r--r--sys/dev/iicbus/iiconf.c2
-rw-r--r--sys/dev/iicbus/iiconf.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/iicbus/iicbus_if.m b/sys/dev/iicbus/iicbus_if.m
index 7c1c537..c57fac5 100644
--- a/sys/dev/iicbus/iicbus_if.m
+++ b/sys/dev/iicbus/iicbus_if.m
@@ -91,7 +91,7 @@ METHOD int read {
#
METHOD int write {
device_t dev;
- char *buf;
+ const char *buf;
int len;
int *bytes;
int timeout;
diff --git a/sys/dev/iicbus/iiconf.c b/sys/dev/iicbus/iiconf.c
index da050b0..c9124af 100644
--- a/sys/dev/iicbus/iiconf.c
+++ b/sys/dev/iicbus/iiconf.c
@@ -234,7 +234,7 @@ iicbus_stop(device_t bus)
* iicbus_start() call
*/
int
-iicbus_write(device_t bus, char *buf, int len, int *sent, int timeout)
+iicbus_write(device_t bus, const char *buf, int len, int *sent, int timeout)
{
struct iicbus_softc *sc = (struct iicbus_softc *)device_get_softc(bus);
diff --git a/sys/dev/iicbus/iiconf.h b/sys/dev/iicbus/iiconf.h
index 8d20335..092ba8d 100644
--- a/sys/dev/iicbus/iiconf.h
+++ b/sys/dev/iicbus/iiconf.h
@@ -109,7 +109,7 @@ extern int iicbus_started(device_t);
extern int iicbus_start(device_t, u_char, int);
extern int iicbus_stop(device_t);
extern int iicbus_repeated_start(device_t, u_char, int);
-extern int iicbus_write(device_t, char *, int, int *, int);
+extern int iicbus_write(device_t, const char *, int, int *, int);
extern int iicbus_read(device_t, char *, int, int *, int, int);
/* single byte read/write functions, start/stop not managed */
OpenPOWER on IntegriCloud