dell-rbtn: Export notifier for other kernel modules
authorPali Rohár <pali.rohar@gmail.com>
Sat, 6 Jun 2015 08:23:29 +0000 (10:23 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 11 Jun 2015 05:04:11 +0000 (22:04 -0700)
commitb05ffc95f9ed986534b67538e239e9c4ba254b55
tree39d75408240f9b7154eee89ec9af54d883781cdd
parent817a5cdb40c8115eafe631b8e1de37cf8fe9fab8
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>
drivers/platform/x86/dell-rbtn.c
drivers/platform/x86/dell-rbtn.h [new file with mode: 0644]