On Fri, Mar 11, 2011 at 2:50 AM, Andy Green <andy@xxxxxxxxxxx> wrote: > Hi - > > platform_data is a well established way in Linux to pass configuration data > up to on-board assets from a machine file like mach-xyz.c. It's also > supported to pass platform_data up to devices that are probed asynchronously > from busses like i2c as well, which is very handy. > > However AFAIK it's not possible to bind platform_data to probed USB devices > as it stands. Oh, please no. platform_data is an ugly non-type-checked anonymous pointer. If you need to pass data to a driver, use something better designed. A device tree fragment would work, or provide some kind of query api. platform_data is definitely the wrong approach. g. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html