X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fi2c-isa.h;h=67e3598c4cec5c755d7a8a7165b6b138080e9ce8;hb=4e8f10b7ccf1c3c53a818a157962074a7340732e;hp=b5727d7702e1c3b6d237ce3180890b772ae951e1;hpb=400c455eaa0d0819d18cd42a74070e0e238a73dc;p=linux-2.6 diff --git a/include/linux/i2c-isa.h b/include/linux/i2c-isa.h index b5727d7702..67e3598c4c 100644 --- a/include/linux/i2c-isa.h +++ b/include/linux/i2c-isa.h @@ -26,4 +26,11 @@ 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 */