diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-14 11:26:35 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-14 11:26:35 +0000 |
commit | 6bcf57674d84916aad2d558c156a36164400ae6a (patch) | |
tree | ad041dd1d39da7cb8761f6c3f39d48792501646f /package/kernel/broadcom-diag/src/diag.h | |
parent | 8cb95e9b9703095f5bf9050a9fd10dff6e5f0264 (diff) |
broadcom-diag: reoder some parts.
This was done to reduce the number of forward declaration needed.
This does not contain any real change in the code.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37278 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/broadcom-diag/src/diag.h')
-rw-r--r-- | package/kernel/broadcom-diag/src/diag.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/package/kernel/broadcom-diag/src/diag.h b/package/kernel/broadcom-diag/src/diag.h index d9b5b006fe..11c4f9252b 100644 --- a/package/kernel/broadcom-diag/src/diag.h +++ b/package/kernel/broadcom-diag/src/diag.h @@ -85,51 +85,3 @@ struct event_t { u8 enr, anr; #endif }; - -extern char *nvram_get(char *str); - -static struct platform_t platform; - -/* buttons */ - -static void register_buttons(struct button_t *b); -static void unregister_buttons(struct button_t *b); - -static void hotplug_button(struct work_struct *work); -static irqreturn_t button_handler(int irq, void *dev_id); - -/* leds */ - -static void register_leds(struct led_t *l); -static void unregister_leds(struct led_t *l); - -static void set_led_extif(struct led_t *led); -static void set_led_shift(struct led_t *led); -static void led_flash(unsigned long dummy); - -/* 2.4 compatibility */ -#ifndef TIMER_INITIALIZER -#define TIMER_INITIALIZER(_function, _expires, _data) \ - { \ - /* _expires and _data currently unused */ \ - function: _function \ - } -#endif - -static struct timer_list led_timer = TIMER_INITIALIZER(&led_flash, 0, 0); - -/* proc */ - -static struct proc_dir_entry *diag, *leds; - -static ssize_t diag_proc_read(struct file *file, char *buf, size_t count, loff_t *ppos); -static ssize_t diag_proc_write(struct file *file, const char *buf, size_t count, loff_t *ppos); - -static struct file_operations diag_proc_fops = { - read: diag_proc_read, - write: diag_proc_write -}; - -static struct prochandler_t proc_model = { .type = PROC_MODEL }; -static struct prochandler_t proc_gpiomask = { .type = PROC_GPIOMASK }; - |