Re: [PATCH] saa7146_i2c device model integration

2005-08-31 Thread Johannes Stezenbach
On Wed, Aug 24, 2005 Philipp Matthias Hahn wrote:
> Integrate saa7146_i2c adapter into device model:
> Moves entries from /sys/device/platform to /sys/device/pci*.
> 
> Signed-off-by: Philipp Hahn <[EMAIL PROTECTED]>

I added this patch to linuxtv.org CVS.

Thanks,
Johannes


> --- linux/drivers/media/common/saa7146_i2c.c  2004-10-26 22:24:09.0 
> +0200
> +++ linux/drivers/media/common/saa7146_i2c.c  2004-10-24 16:00:32.0 
> +0200
> @@ -409,6 +409,7 @@ int saa7146_i2c_adapter_prepare(struct s
>  #else
>   BUG_ON(!i2c_adapter->class);
>   i2c_set_adapdata(i2c_adapter,dev);
> + i2c_adapter->dev.parent= >pci->dev;
>  #endif
>   i2c_adapter->algo  = _algo;
>   i2c_adapter->algo_data = NULL;
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] saa7146_i2c device model integration

2005-08-31 Thread Johannes Stezenbach
On Wed, Aug 24, 2005 Philipp Matthias Hahn wrote:
 Integrate saa7146_i2c adapter into device model:
 Moves entries from /sys/device/platform to /sys/device/pci*.
 
 Signed-off-by: Philipp Hahn [EMAIL PROTECTED]

I added this patch to linuxtv.org CVS.

Thanks,
Johannes


 --- linux/drivers/media/common/saa7146_i2c.c  2004-10-26 22:24:09.0 
 +0200
 +++ linux/drivers/media/common/saa7146_i2c.c  2004-10-24 16:00:32.0 
 +0200
 @@ -409,6 +409,7 @@ int saa7146_i2c_adapter_prepare(struct s
  #else
   BUG_ON(!i2c_adapter-class);
   i2c_set_adapdata(i2c_adapter,dev);
 + i2c_adapter-dev.parent= dev-pci-dev;
  #endif
   i2c_adapter-algo  = saa7146_algo;
   i2c_adapter-algo_data = NULL;
 
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] saa7146_i2c device model integration

2005-08-24 Thread Philipp Matthias Hahn
Hello!

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

Signed-off-by: Philipp Hahn <[EMAIL PROTECTED]>

--- linux/drivers/media/common/saa7146_i2c.c2004-10-26 22:24:09.0 
+0200
+++ linux/drivers/media/common/saa7146_i2c.c2004-10-24 16:00:32.0 
+0200
@@ -409,6 +409,7 @@ int saa7146_i2c_adapter_prepare(struct s
 #else
BUG_ON(!i2c_adapter->class);
i2c_set_adapdata(i2c_adapter,dev);
+   i2c_adapter->dev.parent= >pci->dev;
 #endif
i2c_adapter->algo  = _algo;
i2c_adapter->algo_data = NULL;

BYtE
Philipp
-- 
  / /  (_)__  __   __ Philipp Hahn
 / /__/ / _ \/ // /\ \/ /
//_/_//_/\_,_/ /_/\_\ [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] saa7146_i2c device model integration

2005-08-24 Thread Philipp Matthias Hahn
Hello!

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

Signed-off-by: Philipp Hahn [EMAIL PROTECTED]

--- linux/drivers/media/common/saa7146_i2c.c2004-10-26 22:24:09.0 
+0200
+++ linux/drivers/media/common/saa7146_i2c.c2004-10-24 16:00:32.0 
+0200
@@ -409,6 +409,7 @@ int saa7146_i2c_adapter_prepare(struct s
 #else
BUG_ON(!i2c_adapter-class);
i2c_set_adapdata(i2c_adapter,dev);
+   i2c_adapter-dev.parent= dev-pci-dev;
 #endif
i2c_adapter-algo  = saa7146_algo;
i2c_adapter-algo_data = NULL;

BYtE
Philipp
-- 
  / /  (_)__  __   __ Philipp Hahn
 / /__/ / _ \/ // /\ \/ /
//_/_//_/\_,_/ /_/\_\ [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/