From: Daniel Kurtz Date: Fri, 30 Mar 2012 11:46:41 +0000 (+0800) Subject: drm/i915/intel_i2c: reuse GMBUS2 value read in polling loop X-Git-Tag: v3.5-rc1~83^2~81^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90e6b26d6b28ade684a4b16b856a74f27bc644bc;p=pandora-kernel.git drm/i915/intel_i2c: reuse GMBUS2 value read in polling loop Save the GMBUS2 value read while polling for state changes, and then reuse this value when determining for which reason the loops were exited. This is a small optimization which saves a couple of bus accesses for memory mapped IO registers. To avoid "assigning in if clause" checkpatch errors", use a ret variable to store the wait_for macro return value. Signed-off-by: Daniel Kurtz Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed