const poison

submitted by: john wehle
This commit is contained in:
Warner Losh 2006-12-05 06:19:36 +00:00
parent 6c818b5fa3
commit 07defc61a9
3 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ METHOD int read {
#
METHOD int write {
device_t dev;
char *buf;
const char *buf;
int len;
int *bytes;
int timeout;

View File

@ -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);

View File

@ -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 */