From: Jean THOMAS Date: Mon, 3 Aug 2020 11:39:04 +0000 (+0200) Subject: Use const qualifier for gram_read/gram_write X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01e2521daa389541e24556b05e46c4c772c1f7e2;p=gram.git Use const qualifier for gram_read/gram_write --- 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 */