From 2798244be78df3ef3a7841597577506bfbe50156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 1 Mar 2019 17:47:24 +0100 Subject: Make drmmode_cm_enabled an inline function So that it can be used outside of drmmode_display.c as well. Reviewed-by: Nicholas Kazlauskas --- src/drmmode_display.c | 8 -------- src/drmmode_display.h | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 859c01e..b44a4f4 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -826,14 +826,6 @@ static enum drmmode_cm_prop get_cm_enum_from_str(const char *prop_name) return CM_INVALID_PROP; } -/** - * Return TRUE if kernel supports non-legacy color management. - */ -static Bool drmmode_cm_enabled(drmmode_ptr drmmode) -{ - return drmmode->cm_prop_ids[CM_GAMMA_LUT_SIZE] != 0; -} - /** * If legacy LUT is a, and non-legacy LUT is b, then the result of b(a(x)) is * returned in out_lut. out_lut's length is expected to be the same as the diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 5063df9..154a1e1 100644 --- a/src/drmmode_display.h +++ b/src/drmmode_display.h @@ -182,6 +182,15 @@ enum drmmode_flip_sync { }; +/** + * Return TRUE if kernel supports non-legacy color management. + */ +static inline Bool +drmmode_cm_enabled(drmmode_ptr drmmode) +{ + return drmmode->cm_prop_ids[CM_GAMMA_LUT_SIZE] != 0; +} + /* Can the page flip ioctl be used for this CRTC? */ static inline Bool drmmode_crtc_can_flip(xf86CrtcPtr crtc) -- cgit v1.2.3