projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
389246f
)
drm/i915/dp: use sizeof for memset instead of magic value
author
Jani Nikula
<jani.nikula@intel.com>
Fri, 4 Oct 2013 12:08:47 +0000
(15:08 +0300)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 10:46:49 +0000
(12:46 +0200)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_dp.c
b/drivers/gpu/drm/i915/intel_dp.c
index 4f52ec75b39feb13ab03db507dc7a1c7a8b52931..d9090d0340c7a8d87282593506d2067ba98f15dd 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_dp.c
+++ b/
drivers/gpu/drm/i915/intel_dp.c
@@
-2389,7
+2389,7
@@
static bool
intel_dp_reset_link_train(struct intel_dp *intel_dp, uint32_t *DP,
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);
return intel_dp_set_link_train(intel_dp, DP, dp_train_pat);
}