Hi Steve, Andrew, Thanks for the review Andrew. I have some more comments, I'll reply to the original post. On Tue, 18 Dec 2007 20:56:44 +0000, Steve Hardy wrote: > >> +static int ads7828_attach_adapter(struct i2c_adapter *adapter) > >> +{ > >> + if (!(adapter->class & I2C_CLASS_HWMON)) > >> + return 0; > > > > Can this happen? > > Hmmm, this code exists in pretty much all of the other hwmon > drivers, so I will leave it in. > > I think it relates to I2C vs ISA connected devices, to avoid > detecting something with the correct ID on the wrong bus? Not at all ;) It relates to I2C buses being used in various devices such as TV adapters, which do not have hardware monitoring chips and do not like being randomly probed for I2C devices as most hardware monitoring drivers do when you load them. -- Jean Delvare