From: Jani Nikula Date: Wed, 1 Apr 2015 07:55:04 +0000 (+0300) Subject: drm/i915: index gmbus tables using the pin pair number X-Git-Tag: omap-for-v4.2/fixes-rc1^2~17^2~58^2~152 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ea6e5e36ee54a83dfef9739f006a6a91d00e7fe;p=pandora-kernel.git drm/i915: index gmbus tables using the pin pair number Index the gmbus tables directly using the pin instead of having a confusing "port = i + 1" mapping. This finishes off removing the "gmbus port" as a notion, and leaves us with just the "gmbus pin". As pin 0 is invalid by definition and the gmbus tables will have a gap at that index, add pin validity check to all the loops. This will be benefitial for supporting platforms that have different numbers of pins, or gaps. v2: s/GMBUS_PIN_MAX/GMBUS_NUM_PINS/ (Ville, Daniel) Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed