aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/broadcom-diag/src/diag.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-07-14 11:26:35 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-07-14 11:26:35 +0000
commit6d0a2d148e02a456254e5d8d1a8fda29e29e3a9a (patch)
treead041dd1d39da7cb8761f6c3f39d48792501646f /package/kernel/broadcom-diag/src/diag.h
parent7ed2d05b94c6d3ecd75082287fdb9e12cc61b0bd (diff)
downloadupstream-6d0a2d148e02a456254e5d8d1a8fda29e29e3a9a.tar.gz
upstream-6d0a2d148e02a456254e5d8d1a8fda29e29e3a9a.tar.bz2
upstream-6d0a2d148e02a456254e5d8d1a8fda29e29e3a9a.zip
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.h48
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 };
-