diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2015-06-06 10:23:29 +0200 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2015-06-10 22:04:11 -0700 |
commit | b05ffc95f9ed986534b67538e239e9c4ba254b55 (patch) | |
tree | 39d75408240f9b7154eee89ec9af54d883781cdd /drivers/platform/x86/dell-rbtn.h | |
parent | 817a5cdb40c8115eafe631b8e1de37cf8fe9fab8 (diff) | |
download | linux-b05ffc95f9ed986534b67538e239e9c4ba254b55.tar.gz linux-b05ffc95f9ed986534b67538e239e9c4ba254b55.tar.bz2 linux-b05ffc95f9ed986534b67538e239e9c4ba254b55.zip |
dell-rbtn: Export notifier for other kernel modules
This patch exports notifier functions so other modules can receive HW
switch events. By default when some module register notifier, dell-rbtn
driver automatically remove rfkill interfaces from system (it is expected
that other module will use events for other rfkill interface). This
behaviour can be changed with new module parameter "auto_remove_rfkill".
This patch is designed for dell-laptop module for receiving those events.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Tested-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
[dvhart@linux.intel.com: Cleanup MODULE_PARM_DESC formatting and grammar]
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/dell-rbtn.h')
-rw-r--r-- | drivers/platform/x86/dell-rbtn.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-rbtn.h b/drivers/platform/x86/dell-rbtn.h new file mode 100644 index 000000000000..c59cc6b8ec2b --- /dev/null +++ b/drivers/platform/x86/dell-rbtn.h @@ -0,0 +1,24 @@ +/* + Dell Airplane Mode Switch driver + Copyright (C) 2014-2015 Pali Rohár <pali.rohar@gmail.com> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. +*/ + +#ifndef _DELL_RBTN_H_ +#define _DELL_RBTN_H_ + +struct notifier_block; + +int dell_rbtn_notifier_register(struct notifier_block *nb); +int dell_rbtn_notifier_unregister(struct notifier_block *nb); + +#endif |