From 01e2521daa389541e24556b05e46c4c772c1f7e2 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Mon, 3 Aug 2020 13:39:04 +0200 Subject: [PATCH] Use const qualifier for gram_read/gram_write --- libgram/include/gram.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgram/include/gram.h b/libgram/include/gram.h index 52eb010..401713e 100644 --- a/libgram/include/gram.h +++ b/libgram/include/gram.h @@ -34,8 +34,8 @@ extern __attribute__((visibility ("default"))) void gram_reset_burstdet(const st extern __attribute__((visibility ("default"))) bool gram_read_burstdet(const struct gramCtx *ctx, int phase); #ifdef GRAM_RW_FUNC -extern uint32_t gram_read(struct gramCtx *ctx, void *addr); -extern int gram_write(struct gramCtx *ctx, void *addr, uint32_t value); +extern uint32_t gram_read(const struct gramCtx *ctx, void *addr); +extern int gram_write(const struct gramCtx *ctx, void *addr, uint32_t value); #endif /* GRAM_RW_FUNC */ #endif /* GRAM_H */ -- 2.30.2