Made data pointer in ec_fsm_sii_write() const.
authorFlorian Pose <fp@igh-essen.com>
Thu, 01 Mar 2007 21:23:07 +0000
changeset 600 b0660152f710
parent 599 a6ce861a167e
child 601 d6d951b766e3
Made data pointer in ec_fsm_sii_write() const.
master/fsm_sii.c
master/fsm_sii.h
--- a/master/fsm_sii.c	Thu Mar 01 15:03:08 2007 +0000
+++ b/master/fsm_sii.c	Thu Mar 01 21:23:07 2007 +0000
@@ -105,7 +105,7 @@
 void ec_fsm_sii_write(ec_fsm_sii_t *fsm, /**< finite state machine */
                       ec_slave_t *slave, /**< slave to read from */
                       uint16_t offset, /**< offset to read from */
-                      uint16_t *value, /**< pointer to 2 bytes of data */
+                      const uint16_t *value, /**< pointer to 2 bytes of data */
                       ec_fsm_sii_addressing_t mode /**< addressing scheme */
                       )
 {
--- a/master/fsm_sii.h	Thu Mar 01 15:03:08 2007 +0000
+++ b/master/fsm_sii.h	Thu Mar 01 21:23:07 2007 +0000
@@ -84,8 +84,8 @@
 
 void ec_fsm_sii_read(ec_fsm_sii_t *, ec_slave_t *,
                      uint16_t, ec_fsm_sii_addressing_t);
-void ec_fsm_sii_write(ec_fsm_sii_t *, ec_slave_t *, uint16_t, uint16_t *,
-                      ec_fsm_sii_addressing_t);
+void ec_fsm_sii_write(ec_fsm_sii_t *, ec_slave_t *, uint16_t,
+        const uint16_t *, ec_fsm_sii_addressing_t);
 
 int ec_fsm_sii_exec(ec_fsm_sii_t *);
 int ec_fsm_sii_success(ec_fsm_sii_t *);