diff options
author | Eric Engestrom <eric@engestrom.ch> | 2016-08-14 20:02:38 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-08-15 03:25:12 -0400 |
commit | 90844f00049e9f42573fd31d7c32e8fd31d3fd07 (patch) | |
tree | 60303fd6ee2cb480548f847790090e786f5f70fd /include/drm/drm_fourcc.h | |
parent | fc93ff608b15ae32cde3006b7af860b59cac20ec (diff) |
drm: make drm_get_format_name thread-safe
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
[danvet: Clarify that the returned pointer must be freed with
kfree().]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_fourcc.h')
-rw-r--r-- | include/drm/drm_fourcc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h index 7f90a396cf2b..030d22d3ed96 100644 --- a/include/drm/drm_fourcc.h +++ b/include/drm/drm_fourcc.h | |||
@@ -32,6 +32,6 @@ int drm_format_horz_chroma_subsampling(uint32_t format); | |||
32 | int drm_format_vert_chroma_subsampling(uint32_t format); | 32 | int drm_format_vert_chroma_subsampling(uint32_t format); |
33 | int drm_format_plane_width(int width, uint32_t format, int plane); | 33 | int drm_format_plane_width(int width, uint32_t format, int plane); |
34 | int drm_format_plane_height(int height, uint32_t format, int plane); | 34 | int drm_format_plane_height(int height, uint32_t format, int plane); |
35 | const char *drm_get_format_name(uint32_t format); | 35 | const char *drm_get_format_name(uint32_t format) __malloc; |
36 | 36 | ||
37 | #endif /* __DRM_FOURCC_H__ */ | 37 | #endif /* __DRM_FOURCC_H__ */ |