aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/push-switch.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-12-06 23:20:58 -0500
committerPaul Mundt <lethal@linux-sh.org>2006-12-11 18:42:07 -0500
commitfce3a24e7087ba1f56eea5ec14fec592e677e672 (patch)
tree47d38266092fc9087e2d5a7605775a8642efbb40 /include/asm-sh/push-switch.h
parentb482ad5daef786962279ae03090970b0ee8b8d1c (diff)
sh: push-switch fixups for work_struct API damage.
INIT_WORK() dropped the data arg, so now we have to stash an extra pointer and backpedal instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/push-switch.h')
-rw-r--r--include/asm-sh/push-switch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-sh/push-switch.h b/include/asm-sh/push-switch.h
index dfc6bad567f0..4903f9e52dd8 100644
--- a/include/asm-sh/push-switch.h
+++ b/include/asm-sh/push-switch.h
@@ -4,6 +4,7 @@
4#include <linux/timer.h> 4#include <linux/timer.h>
5#include <linux/interrupt.h> 5#include <linux/interrupt.h>
6#include <linux/workqueue.h> 6#include <linux/workqueue.h>
7#include <linux/platform_device.h>
7 8
8struct push_switch { 9struct push_switch {
9 /* switch state */ 10 /* switch state */
@@ -12,6 +13,8 @@ struct push_switch {
12 struct timer_list debounce; 13 struct timer_list debounce;
13 /* workqueue */ 14 /* workqueue */
14 struct work_struct work; 15 struct work_struct work;
16 /* platform device, for workqueue handler */
17 struct platform_device *pdev;
15}; 18};
16 19
17struct push_switch_platform_info { 20struct push_switch_platform_info {