summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2016-01-26 10:40:43 -0200
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2016-01-29 16:29:51 -0200
commit55229f173e00947ecc05747a9038289940e30340 (patch)
tree7e5f76028dca2285a1b402fe4155cc56909134ab /lib
parent12c1eb653fcf26ad3483478e497e09333422d7cd (diff)
lib/igt_fb: fix igt_get_all_formats documentation
We give the callers a const pointer to a static variable that we reuse between multiple calls: they're not supposed to free it, and they don't free it today. Fix the documentation and leave the still reachable pointer instead of reworking the function and its callers. Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 2f8968d6..0462c35b 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1146,7 +1146,7 @@ const char *igt_format_str(uint32_t drm_format)
* @format_count: pointer to integer to store the size of the allocated array
*
* This functions returns an array of all the drm fourcc codes supported by this
- * library. The caller must free the allocated array again with free().
+ * library.
*/
void igt_get_all_formats(const uint32_t **formats, int *format_count)
{