intelfb: add preliminary i2c support
authorDennis Munsie <dmunsie@cecropia.com>
Tue, 20 Jun 2006 18:55:55 +0000 (14:55 -0400)
committerDave Airlie <airlied@linux.ie>
Mon, 3 Jul 2006 09:03:11 +0000 (19:03 +1000)
[03/07] intelfb: add intelfb_i2c_chan struct.

Signed-off-by: Dennis Munsie <dmunsie@cecropia.com>
drivers/video/intelfb/intelfb.h

index abd4c56..5a216b8 100644 (file)
@@ -6,6 +6,10 @@
 #include <linux/agp_backend.h>
 #include <linux/fb.h>
 
+#ifdef CONFIG_FB_INTEL_I2C
+#include <linux/i2c.h>
+#include <linux/i2c-algo-bit.h>
+#endif
 
 /*** Version/name ***/
 #define INTELFB_VERSION                        "0.9.4"
@@ -208,6 +212,15 @@ struct intelfb_heap_data {
        u32 size;    // in bytes
 };
 
+#ifdef CONFIG_FB_INTEL_I2C
+struct intelfb_i2c_chan {
+    struct intelfb_info *dinfo;
+    u32 reg;
+    struct i2c_adapter adapter;
+    struct i2c_algo_bit_data algo;
+};
+#endif
+
 struct intelfb_vsync {
        wait_queue_head_t wait;
        unsigned int count;