mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
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:
parent
9d49749a49
commit
620d5e3ba4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user