mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 06:10:54 +07:00
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
This commit is contained in:
parent
1e6962041c
commit
5dec1affe0
@ -47,7 +47,7 @@ struct dma_pixmap {
|
|||||||
void *base;
|
void *base;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* STI Cursor structure
|
* STI Cursor structure
|
||||||
*
|
*
|
||||||
* @sti_plane: sti_plane structure
|
* @sti_plane: sti_plane structure
|
||||||
|
@ -66,7 +66,7 @@ static struct dvo_config rgb_24bit_de_cfg = {
|
|||||||
.awg_fwgen_fct = sti_awg_generate_code_data_enable_mode,
|
.awg_fwgen_fct = sti_awg_generate_code_data_enable_mode,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* STI digital video output structure
|
* STI digital video output structure
|
||||||
*
|
*
|
||||||
* @dev: driver device
|
* @dev: driver device
|
||||||
|
@ -103,7 +103,7 @@ struct sti_gdp_node_list {
|
|||||||
dma_addr_t btm_field_paddr;
|
dma_addr_t btm_field_paddr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* STI GDP structure
|
* STI GDP structure
|
||||||
*
|
*
|
||||||
* @sti_plane: sti_plane structure
|
* @sti_plane: sti_plane structure
|
||||||
|
@ -231,7 +231,7 @@ static const struct sti_hda_video_config hda_supported_modes[] = {
|
|||||||
AWGi_720x480p_60, NN_720x480p_60, VID_ED}
|
AWGi_720x480p_60, NN_720x480p_60, VID_ED}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* STI hd analog structure
|
* STI hd analog structure
|
||||||
*
|
*
|
||||||
* @dev: driver device
|
* @dev: driver device
|
||||||
|
@ -334,7 +334,6 @@ static void hdmi_infoframe_reset(struct sti_hdmi *hdmi,
|
|||||||
* Helper to concatenate infoframe in 32 bits word
|
* Helper to concatenate infoframe in 32 bits word
|
||||||
*
|
*
|
||||||
* @ptr: pointer on the hdmi internal structure
|
* @ptr: pointer on the hdmi internal structure
|
||||||
* @data: infoframe to write
|
|
||||||
* @size: size to write
|
* @size: size to write
|
||||||
*/
|
*/
|
||||||
static inline unsigned int hdmi_infoframe_subpack(const u8 *ptr, size_t size)
|
static inline unsigned int hdmi_infoframe_subpack(const u8 *ptr, size_t size)
|
||||||
@ -544,13 +543,14 @@ static int hdmi_vendor_infoframe_config(struct sti_hdmi *hdmi)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define HDMI_TIMEOUT_SWRESET 100 /*milliseconds */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Software reset of the hdmi subsystem
|
* Software reset of the hdmi subsystem
|
||||||
*
|
*
|
||||||
* @hdmi: pointer on the hdmi internal structure
|
* @hdmi: pointer on the hdmi internal structure
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define HDMI_TIMEOUT_SWRESET 100 /*milliseconds */
|
|
||||||
static void hdmi_swreset(struct sti_hdmi *hdmi)
|
static void hdmi_swreset(struct sti_hdmi *hdmi)
|
||||||
{
|
{
|
||||||
u32 val;
|
u32 val;
|
||||||
|
@ -157,9 +157,9 @@ static void tvout_write(struct sti_tvout *tvout, u32 val, int offset)
|
|||||||
*
|
*
|
||||||
* @tvout: tvout structure
|
* @tvout: tvout structure
|
||||||
* @reg: register to set
|
* @reg: register to set
|
||||||
* @cr_r:
|
* @cr_r: red chroma or red order
|
||||||
* @y_g:
|
* @y_g: y or green order
|
||||||
* @cb_b:
|
* @cb_b: blue chroma or blue order
|
||||||
*/
|
*/
|
||||||
static void tvout_vip_set_color_order(struct sti_tvout *tvout, int reg,
|
static void tvout_vip_set_color_order(struct sti_tvout *tvout, int reg,
|
||||||
u32 cr_r, u32 y_g, u32 cb_b)
|
u32 cr_r, u32 y_g, u32 cb_b)
|
||||||
@ -214,7 +214,7 @@ static void tvout_vip_set_rnd(struct sti_tvout *tvout, int reg, u32 rnd)
|
|||||||
* @tvout: tvout structure
|
* @tvout: tvout structure
|
||||||
* @reg: register to set
|
* @reg: register to set
|
||||||
* @main_path: main or auxiliary path
|
* @main_path: main or auxiliary path
|
||||||
* @sel_input: selected_input (main/aux + conv)
|
* @video_out: selected_input (main/aux + conv)
|
||||||
*/
|
*/
|
||||||
static void tvout_vip_set_sel_input(struct sti_tvout *tvout,
|
static void tvout_vip_set_sel_input(struct sti_tvout *tvout,
|
||||||
int reg,
|
int reg,
|
||||||
@ -251,7 +251,7 @@ static void tvout_vip_set_sel_input(struct sti_tvout *tvout,
|
|||||||
*
|
*
|
||||||
* @tvout: tvout structure
|
* @tvout: tvout structure
|
||||||
* @reg: register to set
|
* @reg: register to set
|
||||||
* @in_vid_signed: used video input format
|
* @in_vid_fmt: used video input format
|
||||||
*/
|
*/
|
||||||
static void tvout_vip_set_in_vid_fmt(struct sti_tvout *tvout,
|
static void tvout_vip_set_in_vid_fmt(struct sti_tvout *tvout,
|
||||||
int reg, u32 in_vid_fmt)
|
int reg, u32 in_vid_fmt)
|
||||||
|
@ -121,7 +121,7 @@ struct sti_vtg_sync_params {
|
|||||||
u32 vsync_off_bot;
|
u32 vsync_off_bot;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* STI VTG structure
|
* STI VTG structure
|
||||||
*
|
*
|
||||||
* @regs: register mapping
|
* @regs: register mapping
|
||||||
|
Loading…
Reference in New Issue
Block a user