It's even doable within the .c file (and preferable for small drivers).
/* mydriver.c .... header blah blah */
config_option(CONFIG_MY_FAST_CHIP, "Help info for this");
which gets picked out of the .c files during depend phase, and nullified
during compile by means of -Iconfig_system.h would even let us get rid of
Makefiles for drivers. Wouldn't being able to just drop a .c file (or a
bunch of .c files) into the tree in the right place be great? Eliminating
makefiles means eliminating more conflicts, which might mean more time to
respond to other issues...
-- Fish. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/