Hi, On Tue, Dec 21, 2010 at 07:27:10PM +0800, Ming Lei wrote:
OK, I will do a performance comparison between inline and function pointers.
The comparisson should be between your version and struct musb_io_ops version.
The function pointer is only used to musb_readb/musb_writeb, so not make struct musb_io_ops since I don't want musb_read{w,l}/ musb_write{w,l} involved in.
To my eyes, it's much cleaner than exporting a function pointer symbol :-p -- balbi -- 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