Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 17:15:44 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194026 - head/sys/dev/pcf
Message-ID:  <200906111715.n5BHFiPE054680@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Thu Jun 11 17:15:44 2009
New Revision: 194026
URL: http://svn.freebsd.org/changeset/base/194026

Log:
  strict kobj signatures: fix iicbus_write impl in dev/pcf
  
  input buf is const
  
  Reviewed by:	imp, current@
  Approved by:	jhb (mentor)

Modified:
  head/sys/dev/pcf/pcf.c
  head/sys/dev/pcf/pcfvar.h

Modified: head/sys/dev/pcf/pcf.c
==============================================================================
--- head/sys/dev/pcf/pcf.c	Thu Jun 11 17:15:20 2009	(r194025)
+++ head/sys/dev/pcf/pcf.c	Thu Jun 11 17:15:44 2009	(r194026)
@@ -378,7 +378,7 @@ pcf_rst_card(device_t dev, u_char speed,
 }
 
 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;

Modified: head/sys/dev/pcf/pcfvar.h
==============================================================================
--- head/sys/dev/pcf/pcfvar.h	Thu Jun 11 17:15:20 2009	(r194025)
+++ head/sys/dev/pcf/pcfvar.h	Thu Jun 11 17:15:44 2009	(r194026)
@@ -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;



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