dde_linux: provide module_param_named macro

Implementing this macro provides easy access to module parameters from
outside the contrib code, i.e. the driver frontend. For now it will be
solely used by the wifi_drv.

Issue #2124.
This commit is contained in:
Josef Söntgen 2016-10-11 11:00:36 +02:00 committed by Christian Helmuth
parent 9d49749a49
commit 620d5e3ba4

View File

@ -64,7 +64,15 @@ int try_module_get(struct module *);
*************************/
#define module_param(name, type, perm)
#define module_param_named(name, value, type, perm)
/*
* For our shenanigans to work we have to define charp (used by the
* iwlwifi module).
*/
#define charp char*
#define module_param_named(name, value, type, perm) \
type *module_param_ ## name = &value;
#define module_param_unsafe(name, type, perm)
#define module_param_named_unsafe(name, value, type, perm)
#define MODULE_PARM_DESC(_parm, desc)