mirror of https://gitee.com/openkylin/linux.git
drm/i915/dp: use sizeof for memset instead of magic value
Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
389246f9c1
commit
953d22e870
|
@ -2389,7 +2389,7 @@ static bool
|
||||||
intel_dp_reset_link_train(struct intel_dp *intel_dp, uint32_t *DP,
|
intel_dp_reset_link_train(struct intel_dp *intel_dp, uint32_t *DP,
|
||||||
uint8_t dp_train_pat)
|
uint8_t dp_train_pat)
|
||||||
{
|
{
|
||||||
memset(intel_dp->train_set, 0, 4);
|
memset(intel_dp->train_set, 0, sizeof(intel_dp->train_set));
|
||||||
intel_dp_set_signal_levels(intel_dp, DP);
|
intel_dp_set_signal_levels(intel_dp, DP);
|
||||||
return intel_dp_set_link_train(intel_dp, DP, dp_train_pat);
|
return intel_dp_set_link_train(intel_dp, DP, dp_train_pat);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue