How to get config data from a Linux kernel module?-Collection of common programming errors
If you truly need dirt simple, then pass parameters to the module on the insmod/modprobe command line.
To see how to declare parameters, look at other people’s modules.
(To do anything in a module that other people’s modules already do, look at other people’s modules, including how to register into sysfs.)
If the configuration can change at runtime, while the module stays inserted, then you can’t use module parameters for it.