From 71eafb0d06f29c50cf0c5d7e0e6c791c105d2ee7 Mon Sep 17 00:00:00 2001 From: "david-b@pacbell.net" Date: Wed, 29 Jun 2005 07:14:06 -0700 Subject: [PATCH] --- yaml --- r: 4651 b: refs/heads/master c: 61f5809d3ebce9d5433b8696048e91405b681023 h: refs/heads/master i: 4649: 4a6bb3b630a2f1673eaf1f349e185396d35f3fd6 4647: 85b1df622aafe42f49bea189fc8eaa9ee357f8e0 v: v3 --- [refs] | 2 +- trunk/Documentation/i2c/writing-clients | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/[refs] b/[refs] index da6c8ca5ab43..3d2bbc2bbe90 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2db32767874fe53faff4f80de878ca19927efc1f +refs/heads/master: 61f5809d3ebce9d5433b8696048e91405b681023 diff --git a/trunk/Documentation/i2c/writing-clients b/trunk/Documentation/i2c/writing-clients index f482dae81de3..91664be91ffc 100644 --- a/trunk/Documentation/i2c/writing-clients +++ b/trunk/Documentation/i2c/writing-clients @@ -27,7 +27,6 @@ address. static struct i2c_driver foo_driver = { .owner = THIS_MODULE, .name = "Foo version 2.3 driver", - .id = I2C_DRIVERID_FOO, /* from i2c-id.h, optional */ .flags = I2C_DF_NOTIFY, .attach_adapter = &foo_attach_adapter, .detach_client = &foo_detach_client, @@ -37,12 +36,6 @@ static struct i2c_driver foo_driver = { The name can be chosen freely, and may be upto 40 characters long. Please use something descriptive here. -If used, the id should be a unique ID. The range 0xf000 to 0xffff is -reserved for local use, and you can use one of those until you start -distributing the driver, at which time you should contact the i2c authors -to get your own ID(s). Note that most of the time you don't need an ID -at all so you can just omit it. - Don't worry about the flags field; just put I2C_DF_NOTIFY into it. This means that your driver will be notified when new adapters are found. This is almost always what you want.