Dear Jean Thank you for your advice > I don't think this is a good idea in general. If the kernel lacks I2C > support, and your code uses it, then this is dead code, and you're much > better excluding that code completely from your build. Most likely > you'll be able to drop whole functions. I wouldn't count on the > compiler to optimize it all properly, and you said you want a very > small kernel. > > Of course we could make better comments if we could see your actual > code. Maybe some ifdef magic in i2c.h would make sense for a few items, > as we already do for i2c_register_board_info for example. I understand, thank you. I use #ifdef for it. Best regards --- Kuninori Morimoto -- 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