projects
/
GitHub
/
LineageOS
/
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:
df97729
)
drm/i915: use msecs_to_jiffies_timeout instead of open coding the same
author
Imre Deak
<imre.deak@intel.com>
Tue, 21 May 2013 17:03:18 +0000
(20:03 +0300)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 22 May 2013 11:51:20 +0000
(13:51 +0200)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_i2c.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_i2c.c
b/drivers/gpu/drm/i915/intel_i2c.c
index 5d245031e391a464fbe8eb6fb6031e70e1ac6770..98cd85352d9adbca693c1f42abb340fd0a05395e 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_i2c.c
+++ b/
drivers/gpu/drm/i915/intel_i2c.c
@@
-228,7
+228,7
@@
gmbus_wait_hw_status(struct drm_i915_private *dev_priv,
* need to wake up periodically and check that ourselves. */
I915_WRITE(GMBUS4 + reg_offset, gmbus4_irq_en);
- for (i = 0; i < msecs_to_jiffies
(50) + 1
; i++) {
+ for (i = 0; i < msecs_to_jiffies
_timeout(50)
; i++) {
prepare_to_wait(&dev_priv->gmbus_wait_queue, &wait,
TASK_UNINTERRUPTIBLE);