lkml.org 
[lkml]   [2005]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[DVB patch 53/54] saa7146: i2c vs. sysfs fix
From: Philipp Matthias Hahn <pmhahn@titan.lahn.de>

Integrate saa7146_i2c adapter into device model:
Moves entries from /sys/device/platform to /sys/device/pci*.

Signed-off-by: Philipp Hahn <pmhahn@titan.lahn.de>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>

drivers/media/common/saa7146_i2c.c | 1 +
1 file changed, 1 insertion(+)
--- linux-2.6.13-git4.orig/drivers/media/common/saa7146_i2c.c 2005-09-04 22:27:49.000000000 +0200
+++ linux-2.6.13-git4/drivers/media/common/saa7146_i2c.c 2005-09-04 22:31:04.000000000 +0200
@@ -405,6 +405,7 @@ int saa7146_i2c_adapter_prepare(struct s
if( NULL != i2c_adapter ) {
BUG_ON(!i2c_adapter->class);
i2c_set_adapdata(i2c_adapter,dev);
+ i2c_adapter->dev.parent = &dev->pci->dev;
i2c_adapter->algo = &saa7146_algo;
i2c_adapter->algo_data = NULL;
i2c_adapter->id = I2C_ALGO_SAA7146;
--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-05 01:39    [from the cache]
©2003-2011 Jasper Spaans