瀏覽代碼

[PATCH] i2c: Drop i2c_driver.{owner,name}, 11 of 11

Document the drop of the owner and name fields of the i2c_driver
structure.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
CC: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Jean Delvare 19 年之前
父節點
當前提交
d45d204f0c
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 4 0
      Documentation/i2c/porting-clients
  2. 4 2
      Documentation/i2c/writing-clients

+ 4 - 0
Documentation/i2c/porting-clients

@@ -125,6 +125,10 @@ Technical changes:
 
 
 * [Driver] The flags field of the i2c_driver structure is gone.
 * [Driver] The flags field of the i2c_driver structure is gone.
   I2C_DF_NOTIFY is now the default behavior.
   I2C_DF_NOTIFY is now the default behavior.
+  The i2c_driver structure has a driver member, which is itself a
+  structure, those owner and name members should be initialized to
+  THIS_MODULE and a driver name string, respectively. i2c_driver
+  itself has no name member anymore.
 
 
 Coding policy:
 Coding policy:
 
 

+ 4 - 2
Documentation/i2c/writing-clients

@@ -25,8 +25,10 @@ routines, a client structure specific information like the actual I2C
 address.
 address.
 
 
 static struct i2c_driver foo_driver = {
 static struct i2c_driver foo_driver = {
-	.owner		= THIS_MODULE,
-	.name		= "Foo version 2.3 driver",
+	.driver = {
+		.owner	= THIS_MODULE,
+		.name	= "foo",
+	},
 	.attach_adapter	= &foo_attach_adapter,
 	.attach_adapter	= &foo_attach_adapter,
 	.detach_client	= &foo_detach_client,
 	.detach_client	= &foo_detach_client,
 	.command	= &foo_command /* may be NULL */
 	.command	= &foo_command /* may be NULL */