Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: sti: fix W=1 warnings

Fix warnings when W=1.
No code changes, only clean up in sti internal structures and functions
descriptions.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190909101254.24191-1-benjamin.gaignard@st.com

authored by

Benjamin Gaignard and committed by
Benjamin Gaignard
5dec1aff 1e696204

+12 -12
+1 -1
drivers/gpu/drm/sti/sti_cursor.c
··· 47 47 void *base; 48 48 }; 49 49 50 - /** 50 + /* 51 51 * STI Cursor structure 52 52 * 53 53 * @sti_plane: sti_plane structure
+1 -1
drivers/gpu/drm/sti/sti_dvo.c
··· 66 66 .awg_fwgen_fct = sti_awg_generate_code_data_enable_mode, 67 67 }; 68 68 69 - /** 69 + /* 70 70 * STI digital video output structure 71 71 * 72 72 * @dev: driver device
+1 -1
drivers/gpu/drm/sti/sti_gdp.c
··· 103 103 dma_addr_t btm_field_paddr; 104 104 }; 105 105 106 - /** 106 + /* 107 107 * STI GDP structure 108 108 * 109 109 * @sti_plane: sti_plane structure
+1 -1
drivers/gpu/drm/sti/sti_hda.c
··· 231 231 AWGi_720x480p_60, NN_720x480p_60, VID_ED} 232 232 }; 233 233 234 - /** 234 + /* 235 235 * STI hd analog structure 236 236 * 237 237 * @dev: driver device
+2 -2
drivers/gpu/drm/sti/sti_hdmi.c
··· 334 334 * Helper to concatenate infoframe in 32 bits word 335 335 * 336 336 * @ptr: pointer on the hdmi internal structure 337 - * @data: infoframe to write 338 337 * @size: size to write 339 338 */ 340 339 static inline unsigned int hdmi_infoframe_subpack(const u8 *ptr, size_t size) ··· 543 544 return 0; 544 545 } 545 546 547 + #define HDMI_TIMEOUT_SWRESET 100 /*milliseconds */ 548 + 546 549 /** 547 550 * Software reset of the hdmi subsystem 548 551 * 549 552 * @hdmi: pointer on the hdmi internal structure 550 553 * 551 554 */ 552 - #define HDMI_TIMEOUT_SWRESET 100 /*milliseconds */ 553 555 static void hdmi_swreset(struct sti_hdmi *hdmi) 554 556 { 555 557 u32 val;
+5 -5
drivers/gpu/drm/sti/sti_tvout.c
··· 157 157 * 158 158 * @tvout: tvout structure 159 159 * @reg: register to set 160 - * @cr_r: 161 - * @y_g: 162 - * @cb_b: 160 + * @cr_r: red chroma or red order 161 + * @y_g: y or green order 162 + * @cb_b: blue chroma or blue order 163 163 */ 164 164 static void tvout_vip_set_color_order(struct sti_tvout *tvout, int reg, 165 165 u32 cr_r, u32 y_g, u32 cb_b) ··· 214 214 * @tvout: tvout structure 215 215 * @reg: register to set 216 216 * @main_path: main or auxiliary path 217 - * @sel_input: selected_input (main/aux + conv) 217 + * @video_out: selected_input (main/aux + conv) 218 218 */ 219 219 static void tvout_vip_set_sel_input(struct sti_tvout *tvout, 220 220 int reg, ··· 251 251 * 252 252 * @tvout: tvout structure 253 253 * @reg: register to set 254 - * @in_vid_signed: used video input format 254 + * @in_vid_fmt: used video input format 255 255 */ 256 256 static void tvout_vip_set_in_vid_fmt(struct sti_tvout *tvout, 257 257 int reg, u32 in_vid_fmt)
+1 -1
drivers/gpu/drm/sti/sti_vtg.c
··· 121 121 u32 vsync_off_bot; 122 122 }; 123 123 124 - /** 124 + /* 125 125 * STI VTG structure 126 126 * 127 127 * @regs: register mapping