From 620d5e3ba4c2e0b4f5105749227547056d1a9817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 11 Oct 2016 11:00:36 +0200 Subject: [PATCH] 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. --- repos/dde_linux/src/include/lx_emul/module.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/repos/dde_linux/src/include/lx_emul/module.h b/repos/dde_linux/src/include/lx_emul/module.h index e21db30c31..d8e4e9276f 100644 --- a/repos/dde_linux/src/include/lx_emul/module.h +++ b/repos/dde_linux/src/include/lx_emul/module.h @@ -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)