drm/i915: Change I2C api to pass around i2c_adapters
commitf9c10a9b96a31b4a82a4fa807400c04f00284068
authorKeith Packard <keithp@keithp.com>
Sat, 30 May 2009 19:16:25 +0000 (30 12:16 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 18 Jun 2009 22:53:57 +0000 (18 15:53 -0700)
treed49abf9846d0177aad3b317da1ea98d9ad129ca6
parentb99e228d354cc1e7f19fb8b5f1297d493e309186
drm/i915: Change I2C api to pass around i2c_adapters

The existing API passed around intel_i2c_chan pointers, which are dependent
on the i2c bit-banging algo. This precluded the driver from using outputs
which use a different algo. Switching to the more general i2c_adpater allows
the driver to support non bit-banging DDC.

This also required moving the slave address into the output private
structures.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 files changed:
drivers/gpu/drm/i915/dvo.h
drivers/gpu/drm/i915/dvo_ch7017.c
drivers/gpu/drm/i915/dvo_ch7xxx.c
drivers/gpu/drm/i915/dvo_ivch.c
drivers/gpu/drm/i915/dvo_sil164.c
drivers/gpu/drm/i915/dvo_tfp410.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_dvo.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_i2c.c
drivers/gpu/drm/i915/intel_modes.c
drivers/gpu/drm/i915/intel_sdvo.c