mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-08 06:44:35 +08:00
drm/i915/dp: avoid shadowing variables
Everything seems to be all right, but shadowing is to be avoided. Cc: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Ramalingam C <ramalingam.c@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190820134019.13229-2-jani.nikula@intel.com
This commit is contained in:
parent
57bf7f43ba
commit
3be3a877cc
@ -5820,7 +5820,7 @@ struct hdcp2_dp_msg_data {
|
|||||||
u32 timeout2; /* Added for non_paired situation */
|
u32 timeout2; /* Added for non_paired situation */
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct hdcp2_dp_msg_data hdcp2_msg_data[] = {
|
static struct hdcp2_dp_msg_data hdcp2_dp_msg_data[] = {
|
||||||
{ HDCP_2_2_AKE_INIT, DP_HDCP_2_2_AKE_INIT_OFFSET, false, 0, 0 },
|
{ HDCP_2_2_AKE_INIT, DP_HDCP_2_2_AKE_INIT_OFFSET, false, 0, 0 },
|
||||||
{ HDCP_2_2_AKE_SEND_CERT, DP_HDCP_2_2_AKE_SEND_CERT_OFFSET,
|
{ HDCP_2_2_AKE_SEND_CERT, DP_HDCP_2_2_AKE_SEND_CERT_OFFSET,
|
||||||
false, HDCP_2_2_CERT_TIMEOUT_MS, 0 },
|
false, HDCP_2_2_CERT_TIMEOUT_MS, 0 },
|
||||||
@ -5951,9 +5951,9 @@ static struct hdcp2_dp_msg_data *get_hdcp2_dp_msg_data(u8 msg_id)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(hdcp2_msg_data); i++)
|
for (i = 0; i < ARRAY_SIZE(hdcp2_dp_msg_data); i++)
|
||||||
if (hdcp2_msg_data[i].msg_id == msg_id)
|
if (hdcp2_dp_msg_data[i].msg_id == msg_id)
|
||||||
return &hdcp2_msg_data[i];
|
return &hdcp2_dp_msg_data[i];
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user