From 4a0c76c1a0c80f0d23741f53bf531a585f3af99d Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Fri, 13 Jun 2014 17:52:59 +0100 Subject: [PATCH] spi.h: add doc to make sure people free the returned buffer after maa_spi_write Signed-off-by: Brendan Le Foll --- api/maa/spi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/maa/spi.h b/api/maa/spi.h index 84945f8..6700d74 100644 --- a/api/maa/spi.h +++ b/api/maa/spi.h @@ -81,7 +81,8 @@ maa_result_t maa_spi_frequency(maa_spi_context dev, int hz); */ uint8_t maa_spi_write(maa_spi_context dev, uint8_t data); -/** Write Buffer of bytes to the SPI device. +/** Write Buffer of bytes to the SPI device. The pointer return has to be + * free'd by the caller. * * @param dev The Spi context * @param data to send -- 2.7.4