WorkStruct: Pass the work_struct pointer instead of context data
[linux-3.10.git] / include / linux / libata.h
index 5f04006..b3f32ea 100644 (file)
@@ -568,6 +568,7 @@ struct ata_port {
        struct ata_host         *host;
        struct device           *dev;
 
+       void                    *port_task_data;
        struct delayed_work     port_task;
        struct delayed_work     hotplug_task;
        struct work_struct      scsi_rescan_task;
@@ -747,7 +748,7 @@ extern int ata_ratelimit(void);
 extern unsigned int ata_busy_sleep(struct ata_port *ap,
                                   unsigned long timeout_pat,
                                   unsigned long timeout);
-extern void ata_port_queue_task(struct ata_port *ap, void (*fn)(void *),
+extern void ata_port_queue_task(struct ata_port *ap, work_func_t fn,
                                void *data, unsigned long delay);
 extern u32 ata_wait_register(void __iomem *reg, u32 mask, u32 val,
                             unsigned long interval_msec,