On 12/10/07, Scott Wood <[EMAIL PROTECTED]> wrote: > Jon Smirl wrote: > > I can't see an easy way to do this. The basic problem is that the i2c > > drivers are assumed to be cross platform. > > It'd be a small binding-specific portion, similar to an of_platform stub > on a generic driver. It could probably wait until an actual need > arises, though. > > > I would need to add a path through the i2c core for getting a void > > pointer from the bus to the device But then when the device code gets > > this pointer it has no way of knowing what it was. > > It'd need to know which binding/name combination it matched against > (similar to how of_platform does it). > > > Another way that would work cross platform would be for the module to > > have module parameters for the extra attributes. > > Ick. Module parameters are a PITA, and have to be duplicated with > command line parameters if you want to support non-modular builds.
You don't have to duplicate module parameters in non-modular builds (you needed to a couple of years ago). Even if the module is linked in you can still set the parameters from the kernel command line without doing anything special. Just use module.param = value. > > -Scott > -- Jon Smirl [EMAIL PROTECTED] _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev