summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-12-07 04:20:58 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2006-12-11 23:42:07 (GMT)
commitfce3a24e7087ba1f56eea5ec14fec592e677e672 (patch)
tree47d38266092fc9087e2d5a7605775a8642efbb40 /include
parentb482ad5daef786962279ae03090970b0ee8b8d1c (diff)
downloadlinux-fsl-qoriq-fce3a24e7087ba1f56eea5ec14fec592e677e672.tar.xz
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')
-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 dfc6bad..4903f9e 100644
--- a/include/asm-sh/push-switch.h
+++ b/include/asm-sh/push-switch.h
@@ -4,6 +4,7 @@
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
+#include <linux/platform_device.h>
struct push_switch {
/* switch state */
@@ -12,6 +13,8 @@ struct push_switch {
struct timer_list debounce;
/* workqueue */
struct work_struct work;
+ /* platform device, for workqueue handler */
+ struct platform_device *pdev;
};
struct push_switch_platform_info {