Commit b202c0ff authored by YueHaibing's avatar YueHaibing Committed by Alex Deucher

drm/amd/display: remove unused function setFieldWithMask

After commit a9f54ce3 ("drm/amd/display: Refactoring VTEM"),
there is no caller in tree.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 57be797c
...@@ -114,25 +114,6 @@ enum ColorimetryYCCDP { ...@@ -114,25 +114,6 @@ enum ColorimetryYCCDP {
ColorimetryYCC_DP_ITU2020YCbCr = 7, ColorimetryYCC_DP_ITU2020YCbCr = 7,
}; };
void setFieldWithMask(unsigned char *dest, unsigned int mask, unsigned int value)
{
unsigned int shift = 0;
if (!mask || !dest)
return;
while (!((mask >> shift) & 1))
shift++;
//reset
*dest = *dest & ~mask;
//set
//dont let value span past mask
value = value & (mask >> shift);
//insert value
*dest = *dest | (value << shift);
}
void mod_build_vsc_infopacket(const struct dc_stream_state *stream, void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
struct dc_info_packet *info_packet) struct dc_info_packet *info_packet)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment