Hi Wolfram, On Fri, 24 Apr 2009 10:52:56 +0200, Wolfram Sang wrote: > > And how do you want to implement setting the class attribute? > > Not at all. I see ".class" as a reminiscent to overcome some flaws of > the old binding model. Not really. The old binding model didn't have this concept of class originally, it was added later but never enforced and only sparsely used. Nowadays classes are an extension of the new binding model, used to restrict the field of application of .detect() callbacks (because we definitely do not want probing to be enabled by default.) > If we finally got rid of that we can surely think > of a more elegant way to enforce instanciation of clients run-time. And > with that, probably get rid of .class altogether. D'accord, Jean? In an ideal world, yes. In the real world, no. There are several thousand PC mainboards out there with devices on the SMBus and we don't have a list, and in most cases no way to ask the system about them. Probing is the only realistic way there, so at least I2C_CLASS_HWMON, I2C_CLASS_DDC and I2C_CLASS_SPD are there to stay. We should be able to get rid of I2C_CLASS_TV_ANALOG and I2C_CLASS_TV_DIGITAL though. While classes will stay for PC mainboards, it should be possible (and desirable) to stop using them completely on embedded systems. -- Jean Delvare -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html