Gitweb: http://git.kernel.org/linus/e9b764506aeb06ada6a7d0a24eda3e6eb70bade1
Commit: e9b764506aeb06ada6a7d0a24eda3e6eb70bade1
Parent: 6051d44cb1210e79b39143921b9e162983a03005
Author: Marek Lindner <lindner_marek@yahoo.de>
AuthorDate: Sat Jan 2 11:30:46 2010 +0100
Committer: Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Wed Mar 3 16:42:35 2010 -0800
Staging: batman-adv: splitting /proc vis file into vis_server and vis_data
The /proc vis file was used to enable/disable the vis server and to output
the vis data at the same time. This behaviour was confusing and lacked a
proper method to display the current vis server status.
This patch seperates the 2 functionalities:
* use vis_server to enable/disable the vis server and to retrieve its status
* use vis_data to retrieve the vis raw data (if the server is enabled)
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/staging/batman-adv/proc.c | 172 +++++++++++++++---------------------
drivers/staging/batman-adv/proc.h | 4 +-
drivers/staging/batman-adv/types.h | 10 ++
drivers/staging/batman-adv/vis.c | 62 +++++++++++++
drivers/staging/batman-adv/vis.h | 6 ++
5 files changed, 151 insertions(+), 103 deletions(-)
diff --git a/drivers/staging/batman-adv/proc.c b/drivers/staging/batman-adv/proc.c
index d0da0ea..a4f19e1 100644
--- a/drivers/staging/batman-adv/proc.c
+++ b/drivers/staging/batman-adv/proc.c
@@ -33,7 +33,7 @@ static struct proc_dir_entry *proc_batman_dir, *proc_interface_file;
static struct proc_dir_entry *proc_orig_interval_file, *proc_originators_file;
static struct proc_dir_entry *proc_transt_local_file;
static struct proc_dir_entry *proc_transt_global_file;
-static struct proc_dir_entry *proc_vis_file;
+static struct proc_dir_entry *proc_vis_srv_file, *proc_vis_data_file;
static struct proc_dir_entry ...