From 3b677cfedee34b656e2ee10c89c140479dcfe592 Mon Sep 17 00:00:00 2001 From: albezanc Date: Fri, 21 May 2021 09:59:57 +0200 Subject: [PATCH] added attribute const to stmdev_write_ptr signature --- lis2dh12_reg.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lis2dh12_reg.h b/lis2dh12_reg.h index 21a6136..d4ca7e6 100644 --- a/lis2dh12_reg.h +++ b/lis2dh12_reg.h @@ -108,11 +108,8 @@ typedef struct * @{ * */ - -typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, uint8_t *, - uint16_t); -typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *, - uint16_t); +typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, const uint8_t *, uint16_t); +typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *, uint16_t); typedef struct {