rfkill: add notifier chains support
commite084421bff5a25352365321dedd022de8fe87a40
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 21 Jun 2008 23:47:50 +0000 (21 20:47 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 21 Jun 2008 23:47:50 +0000 (21 20:47 -0300)
treebabc16a28cda0796bb54429da34569b9b0285019
parent4761f6e37218a3ef6e1d58369be58291ba7f3d7b
rfkill: add notifier chains support

Add a notifier chain for use by the rfkill class.  This notifier chain
signals the following events (more to be added when needed):

  1. rfkill: rfkill device state has changed

A pointer to the rfkill struct will be passed as a parameter.

The notifier message types have been added to include/linux/rfkill.h
instead of to include/linux/notifier.h in order to avoid the madness of
modifying a header used globally (and that triggers an almost full tree
rebuild every time it is touched) with information that is of interest only
to code that includes the rfkill.h header.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
include/linux/rfkill.h
net/rfkill/rfkill.c