diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-09-14 16:29:32 -0400 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-10-19 02:56:00 -0400 |
commit | b0fbcb2a0b54ee201fa8af61fdebe14c050f18fe (patch) | |
tree | 81ad0f43ffd45e3d677c2bc0da50af8c9ee1de58 /drivers/net/wimax/i2400m/i2400m.h | |
parent | 7329012e673231dee9a21567cfb9881f5ea462ba (diff) |
wimax/i2400m: clean up & add a payload argument to i2400m_schedule_work()
Forthcoming commits use having a payload argument added to
i2400m_schedule_work(), which then becomes nearly identical to
i2400m_queue_work().
This patch thus cleans up both's implementation, making it share
common helpers and adding the payload argument to
i2400m_schedule_work().
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Diffstat (limited to 'drivers/net/wimax/i2400m/i2400m.h')
-rw-r--r-- | drivers/net/wimax/i2400m/i2400m.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h index 5ac2cce88ba0..700f87be4acf 100644 --- a/drivers/net/wimax/i2400m/i2400m.h +++ b/drivers/net/wimax/i2400m/i2400m.h | |||
@@ -695,8 +695,6 @@ extern void i2400m_dev_shutdown(struct i2400m *); | |||
695 | 695 | ||
696 | extern struct attribute_group i2400m_dev_attr_group; | 696 | extern struct attribute_group i2400m_dev_attr_group; |
697 | 697 | ||
698 | extern int i2400m_schedule_work(struct i2400m *, | ||
699 | void (*)(struct work_struct *), gfp_t); | ||
700 | 698 | ||
701 | /* HDI message's payload description handling */ | 699 | /* HDI message's payload description handling */ |
702 | 700 | ||
@@ -778,10 +776,14 @@ struct device *i2400m_dev(struct i2400m *i2400m) | |||
778 | struct i2400m_work { | 776 | struct i2400m_work { |
779 | struct work_struct ws; | 777 | struct work_struct ws; |
780 | struct i2400m *i2400m; | 778 | struct i2400m *i2400m; |
779 | size_t pl_size; | ||
781 | u8 pl[0]; | 780 | u8 pl[0]; |
782 | }; | 781 | }; |
783 | extern int i2400m_queue_work(struct i2400m *, | 782 | extern int i2400m_queue_work(struct i2400m *, |
784 | void (*)(struct work_struct *), gfp_t, | 783 | void (*)(struct work_struct *), gfp_t, |
784 | const void *, size_t); | ||
785 | extern int i2400m_schedule_work(struct i2400m *, | ||
786 | void (*)(struct work_struct *), gfp_t, | ||
785 | const void *, size_t); | 787 | const void *, size_t); |
786 | 788 | ||
787 | extern int i2400m_msg_check_status(const struct i2400m_l3l4_hdr *, | 789 | extern int i2400m_msg_check_status(const struct i2400m_l3l4_hdr *, |