Hey, I've sent this before, ages ago, but haven't really followed through with it. I still think it would be useful for many scenarios where a plain number is a clumsy interface for a module param.
Thoughts?
BR, Jani.
Cc: Andrew Morton akpm@linux-foundation.org Cc: Greg Kroah-Hartman gregkh@linuxfoundation.org Cc: Lucas De Marchi lucas.demarchi@intel.com
Jani Nikula (1): module: add enum module parameter type to map names to values
include/linux/moduleparam.h | 64 +++++++++++++++++++++++++++++++++++++ kernel/params.c | 41 ++++++++++++++++++++++++ 2 files changed, 105 insertions(+)