summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
authorJani Nikula2015-03-26 23:20:22 +0100
committerDaniel Vetter2015-04-01 14:11:56 +0200
commit88ac7939d2a6cb67e338e72cf6aaff2ae526b026 (patch)
treec4bbbb557e19488b6c4c07c5d290805136d085f9 /drivers/gpu/drm/i915/intel_lvds.c
parentdrm/i915: index gmbus tables using the pin pair number (diff)
downloadkernel-qcow2-linux-88ac7939d2a6cb67e338e72cf6aaff2ae526b026.tar.gz
kernel-qcow2-linux-88ac7939d2a6cb67e338e72cf6aaff2ae526b026.tar.xz
kernel-qcow2-linux-88ac7939d2a6cb67e338e72cf6aaff2ae526b026.zip
drm/i915: base gmbus pin validity check on the gmbus pin map array
This will be helpful for adding future platforms. It is better to keep the information in the single point of truth (the table) instead of duplicating it into the validity function. While at it, add dev_priv parameter to the function, also to prepare for adding future platform support. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index d61aa78ed7e3..314a5d56ace2 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -781,7 +781,7 @@ static bool lvds_is_present_in_vbt(struct drm_device *dev,
child->device_type != DEVICE_TYPE_LFP)
continue;
- if (intel_gmbus_is_valid_pin(child->i2c_pin))
+ if (intel_gmbus_is_valid_pin(dev_priv, child->i2c_pin))
*i2c_pin = child->i2c_pin;
/* However, we cannot trust the BIOS writers to populate