Skip to content

Commit 3b677cf

Browse files
author
albezanc
committed
added attribute const to stmdev_write_ptr signature
1 parent 9b4d0fb commit 3b677cf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lis2dh12_reg.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,8 @@ typedef struct
108108
* @{
109109
*
110110
*/
111-
112-
typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, uint8_t *,
113-
uint16_t);
114-
typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *,
115-
uint16_t);
111+
typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, const uint8_t *, uint16_t);
112+
typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *, uint16_t);
116113

117114
typedef struct
118115
{

0 commit comments

Comments
 (0)