summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-28 00:43:09 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-29 20:50:25 +0100
commitc167a6fc6ed78a300c29181a6caf9ae1b9993289 (patch)
tree50256d2c3320ed4b4ea8481dc6fbcdaa83505a25 /drivers/gpu/drm/i915/i915_drv.h
parent36c785f051b21728775c9c4f2621d37d586553d0 (diff)
downloadop-kernel-dev-c167a6fc6ed78a300c29181a6caf9ae1b9993289.zip
op-kernel-dev-c167a6fc6ed78a300c29181a6caf9ae1b9993289.tar.gz
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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 63cea508..47b315c 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -35,6 +35,7 @@
#include "intel_ringbuffer.h"
#include <linux/io-mapping.h>
#include <linux/i2c.h>
+#include <linux/i2c-algo-bit.h>
#include <drm/intel-gtt.h>
#include <linux/backlight.h>
@@ -303,6 +304,7 @@ struct intel_gmbus {
struct i2c_adapter *force_bit;
u32 reg0;
u32 gpio_reg;
+ struct i2c_algo_bit_data bit_algo;
struct drm_i915_private *dev_priv;
};
OpenPOWER on IntegriCloud