From 7834a05c7a44c9e6b505725584ed7508822758ac Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 9 Mar 2021 20:04:47 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- get_ramps.h | 7 +------ set_ramps.h | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/get_ramps.h b/get_ramps.h index 2645feb..f3371bd 100644 --- a/get_ramps.h +++ b/get_ramps.h @@ -5,15 +5,13 @@ * libgamma_crtc_get_gamma_ramps{8,16,32,64,f,d} */ -#define CONCAT(A, B) A##B - union gamma_ramps_any ramps_; switch (this->partition->site->method) { #define X(CONST, CNAME, MDEPTH, MRAMPS)\ case CONST:\ if (!(MDEPTH)) {\ - return APPEND_RAMPS(libgamma_dummy_crtc_get_gamma_)(this, (void *)ramps);\ + return APPEND_RAMPS(libgamma_dummy_crtc_get_gamma_)(this, (void *)ramps); /* only dummy is flexible */\ } else if ((DEPTH) == (MDEPTH)) {\ return libgamma_##CNAME##_crtc_get_gamma_##MRAMPS(this, (void *)ramps);\ } else {\ @@ -25,6 +23,3 @@ LIST_AVAILABLE_METHODS(X) default: return LIBGAMMA_NO_SUCH_ADJUSTMENT_METHOD; } - - -#undef CONCAT diff --git a/set_ramps.h b/set_ramps.h index 1ef08e8..1993bd0 100644 --- a/set_ramps.h +++ b/set_ramps.h @@ -11,7 +11,7 @@ switch (this->partition->site->method) { #define X(CONST, CNAME, MDEPTH, MRAMPS)\ case CONST:\ if (!(MDEPTH)) {\ - return APPEND_RAMPS(libgamma_dummy_crtc_set_gamma_)(this, (const void *)ramps);\ + return APPEND_RAMPS(libgamma_dummy_crtc_set_gamma_)(this, (const void *)ramps); /* only dummy is flexible */\ } else if ((DEPTH) == (MDEPTH)) {\ return libgamma_##CNAME##_crtc_set_gamma_##MRAMPS(this, (const void *)ramps);\ } else {\ -- cgit v1.2.3-70-g09d2