]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/i2c-isa.h
[PATCH] WE-19 for kernel 2.6.13
[linux-2.6-omap-h63xx.git] / include / linux / i2c-isa.h
index b5727d7702e1c3b6d237ce3180890b772ae951e1..67e3598c4cec5c755d7a8a7165b6b138080e9ce8 100644 (file)
 extern int i2c_isa_add_driver(struct i2c_driver *driver);
 extern int i2c_isa_del_driver(struct i2c_driver *driver);
 
+/* Detect whether we are on the isa bus. This is only useful to hybrid
+   (i2c+isa) drivers. */
+#define i2c_is_isa_adapter(adapptr) \
+        ((adapptr)->id == I2C_HW_ISA)
+#define i2c_is_isa_client(clientptr) \
+        i2c_is_isa_adapter((clientptr)->adapter)
+
 #endif /* _LINUX_I2C_ISA_H */