drm/i915: merge gmbus and gpio i2c adpater into one
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 27 Feb 2012 23:43:09 +0000 (00:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 29 Feb 2012 19:50:25 +0000 (20:50 +0100)
commitc167a6fc6ed78a300c29181a6caf9ae1b9993289
tree50256d2c3320ed4b4ea8481dc6fbcdaa83505a25
parent36c785f051b21728775c9c4f2621d37d586553d0
drm/i915: merge gmbus and gpio i2c adpater into one

... and directly call the newly exported i2c bit-banging functions.

The code is still pretty convoluted because we only set up the gpio
i2c stuff when actually falling back, resulting in more complexity
than necessary. This will be fixed up in the next patch.

v2: Use exported i2c_bit_algo vtable instead of exported functions.

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_i2c.c