On Mon, May 4, 2009 at 12:43, Jean Delvare <khali@xxxxxxxxxxxx> wrote: > We don't need to give adapters a parent if they don't have one. The > driver core will put them in the virtual device directory and all will > be fine. > > Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx> > --- > Much better than my first attempt. Not sure what will happen if we ever > turn i2c-adapters into bus devices. I see that the driver core puts > class devices without a parent in virtual, but what about _bus_ devices I'm sure, that "virtual" logic could be done for bus devices too, if it's needed. I don't see any reason why that wouldn't be fine. (The less difference between classes and buses the better. It is wrong to have two types of subsystems, doing almost the same thing. One could argue that it could be useful inside the kernel, which it isn't, I think, but exporting them to userspace was definitely the wrong thing.) Thanks, Kay -- 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