Skip to content

Commit d938ec1

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm/amd/display: Add simple struct doc to remove doc build warning
This commit is a part of a series that addresses the following build warning for opp: ./drivers/gpu/drm/amd/display/dc/inc/hw/opp.h:1: warning: no structured comments found ./drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h:1: warning: no structured comments found This commit fixes this issue by adding a simple kernel-doc to a struct in the opp.h and the dpp.h files. Cc: Alex Deucher <[email protected]> Acked-by: Alex Deucher <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 1200bce commit d938ec1

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,28 @@ struct cnv_color_keyer_params {
147147
int color_keyer_blue_high;
148148
};
149149

150-
/* new for dcn2: set the 8bit alpha values based on the 2 bit alpha
151-
*ALPHA_2BIT_LUT. ALPHA_2BIT_LUT0 default: 0b00000000
152-
*ALPHA_2BIT_LUT. ALPHA_2BIT_LUT1 default: 0b01010101
153-
*ALPHA_2BIT_LUT. ALPHA_2BIT_LUT2 default: 0b10101010
154-
*ALPHA_2BIT_LUT. ALPHA_2BIT_LUT3 default: 0b11111111
150+
/**
151+
* struct cnv_alpha_2bit_lut - Set the 8bit alpha values based on the 2 bit alpha
155152
*/
156153
struct cnv_alpha_2bit_lut {
154+
/**
155+
* @lut0: ALPHA_2BIT_LUT. ALPHA_2BIT_LUT0. Default: 0b00000000
156+
*/
157157
int lut0;
158+
159+
/**
160+
* @lut1: ALPHA_2BIT_LUT. ALPHA_2BIT_LUT1. Default: 0b01010101
161+
*/
158162
int lut1;
163+
164+
/**
165+
* @lut2: ALPHA_2BIT_LUT. ALPHA_2BIT_LUT2. Default: 0b10101010
166+
*/
159167
int lut2;
168+
169+
/**
170+
* @lut3: ALPHA_2BIT_LUT. ALPHA_2BIT_LUT3. Default: 0b11111111
171+
*/
160172
int lut3;
161173
};
162174

drivers/gpu/drm/amd/display/dc/inc/hw/opp.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,24 @@ struct gamma_coefficients {
205205
struct fixed31_32 user_brightness;
206206
};
207207

208+
/**
209+
* struct pwl_float_data - Fixed point RGB color
210+
*/
208211
struct pwl_float_data {
212+
/**
213+
* @r: Component Red.
214+
*/
209215
struct fixed31_32 r;
216+
217+
/**
218+
* @g: Component Green.
219+
*/
220+
210221
struct fixed31_32 g;
222+
223+
/**
224+
* @b: Component Blue.
225+
*/
211226
struct fixed31_32 b;
212227
};
213228

0 commit comments

Comments
 (0)