Commit fe242cfd authored by Ivo van Doorn's avatar Ivo van Doorn Committed by David S. Miller

[RFKILL]: Move rfkill_switch_all out of global header

rfkill_switch_all shouldn't be called by drivers directly,
instead they should send a signal over the input device.

To prevent confusion for driver developers, move the
function into a rfkill private header.
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a50e2e3f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define __RFKILL_H #define __RFKILL_H
/* /*
* Copyright (C) 2006 Ivo van Doorn * Copyright (C) 2006 - 2007 Ivo van Doorn
* Copyright (C) 2007 Dmitry Torokhov * Copyright (C) 2007 Dmitry Torokhov
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -84,6 +84,4 @@ void rfkill_free(struct rfkill *rfkill); ...@@ -84,6 +84,4 @@ void rfkill_free(struct rfkill *rfkill);
int rfkill_register(struct rfkill *rfkill); int rfkill_register(struct rfkill *rfkill);
void rfkill_unregister(struct rfkill *rfkill); void rfkill_unregister(struct rfkill *rfkill);
void rfkill_switch_all(enum rfkill_type type, enum rfkill_state state);
#endif /* RFKILL_H */ #endif /* RFKILL_H */
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/rfkill.h> #include <linux/rfkill.h>
#include "rfkill-input.h"
MODULE_AUTHOR("Dmitry Torokhov <dtor@mail.ru>"); MODULE_AUTHOR("Dmitry Torokhov <dtor@mail.ru>");
MODULE_DESCRIPTION("Input layer to RF switch connector"); MODULE_DESCRIPTION("Input layer to RF switch connector");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
/*
* Copyright (C) 2007 Ivo van Doorn
*/
/*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#ifndef __RFKILL_INPUT_H
#define __RFKILL_INPUT_H
void rfkill_switch_all(enum rfkill_type type, enum rfkill_state state);
#endif /* __RFKILL_INPUT_H */
/* /*
* Copyright (C) 2006 Ivo van Doorn * Copyright (C) 2006 - 2007 Ivo van Doorn
* Copyright (C) 2007 Dmitry Torokhov * Copyright (C) 2007 Dmitry Torokhov
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment