Skip to content

Commit 5fb88f3

Browse files
author
albezanc
committed
added attribute const to stmdev_write_ptr signature
1 parent 9f28dba commit 5fb88f3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lsm6dsm_reg.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@ typedef struct
110110
*
111111
*/
112112

113-
typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, uint8_t *,
114-
uint16_t);
115-
typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *,
116-
uint16_t);
113+
typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, const uint8_t *, uint16_t);
114+
typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *, uint16_t);
117115

118116
typedef struct
119117
{

0 commit comments

Comments
 (0)