diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-08-11 17:41:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 12:14:31 -0400 |
commit | c7a46533ff7ef9e1c51bae6e54208527c5275b24 (patch) | |
tree | 4b952a757d60d9cfa4aad8462ee8ef7e03fec6dd /include/linux/i2c-isa.h | |
parent | 1d8b9e1bad35fa3ea829990b9056c2a257d8fe79 (diff) |
[PATCH] I2C: Kill i2c_algorithm.id (5/7)
Merge the algorithm id part (16 upper bits) of the i2c adapters ids
into the definition of the adapters ids directly. After that, we don't
need to OR both ids together for each i2c_adapter structure.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/i2c-isa.h')
-rw-r--r-- | include/linux/i2c-isa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c-isa.h b/include/linux/i2c-isa.h index 54c27e88d101..67e3598c4cec 100644 --- a/include/linux/i2c-isa.h +++ b/include/linux/i2c-isa.h | |||
@@ -29,7 +29,7 @@ extern int i2c_isa_del_driver(struct i2c_driver *driver); | |||
29 | /* Detect whether we are on the isa bus. This is only useful to hybrid | 29 | /* Detect whether we are on the isa bus. This is only useful to hybrid |
30 | (i2c+isa) drivers. */ | 30 | (i2c+isa) drivers. */ |
31 | #define i2c_is_isa_adapter(adapptr) \ | 31 | #define i2c_is_isa_adapter(adapptr) \ |
32 | ((adapptr)->id == (I2C_ALGO_ISA | I2C_HW_ISA)) | 32 | ((adapptr)->id == I2C_HW_ISA) |
33 | #define i2c_is_isa_client(clientptr) \ | 33 | #define i2c_is_isa_client(clientptr) \ |
34 | i2c_is_isa_adapter((clientptr)->adapter) | 34 | i2c_is_isa_adapter((clientptr)->adapter) |
35 | 35 | ||