diff options
author | avg <avg@FreeBSD.org> | 2009-06-11 17:15:44 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2009-06-11 17:15:44 +0000 |
commit | 968aa187848be028540801684a78f06bc40fb342 (patch) | |
tree | 28506302ed647fbf5624c8d7ed4e51e1d6c406d3 /sys/dev/pcf | |
parent | 7e0d744efe834added0ae292626140ad15760a14 (diff) | |
download | FreeBSD-src-968aa187848be028540801684a78f06bc40fb342.zip FreeBSD-src-968aa187848be028540801684a78f06bc40fb342.tar.gz |
strict kobj signatures: fix iicbus_write impl in dev/pcf
input buf is const
Reviewed by: imp, current@
Approved by: jhb (mentor)
Diffstat (limited to 'sys/dev/pcf')
-rw-r--r-- | sys/dev/pcf/pcf.c | 2 | ||||
-rw-r--r-- | sys/dev/pcf/pcfvar.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pcf/pcf.c b/sys/dev/pcf/pcf.c index e774812..55e0346 100644 --- a/sys/dev/pcf/pcf.c +++ b/sys/dev/pcf/pcf.c @@ -378,7 +378,7 @@ pcf_rst_card(device_t dev, u_char speed, u_char addr, u_char *oldaddr) } int -pcf_write(device_t dev, char *buf, int len, int *sent, int timeout /* us */) +pcf_write(device_t dev, const char *buf, int len, int *sent, int timeout /* us */) { struct pcf_softc *sc = DEVTOSOFTC(dev); int bytes, error = 0; diff --git a/sys/dev/pcf/pcfvar.h b/sys/dev/pcf/pcfvar.h index 8e4d5d8..33721c9 100644 --- a/sys/dev/pcf/pcfvar.h +++ b/sys/dev/pcf/pcfvar.h @@ -135,7 +135,7 @@ pcf_get_S1(struct pcf_softc *sc) extern int pcf_repeated_start(device_t, u_char, int); extern int pcf_start(device_t, u_char, int); extern int pcf_stop(device_t); -extern int pcf_write(device_t, char *, int, int *, int); +extern int pcf_write(device_t, const char *, int, int *, int); extern int pcf_read(device_t, char *, int, int *, int, int); extern int pcf_rst_card(device_t, u_char, u_char, u_char *); extern driver_intr_t pcf_intr; |