WorkStruct: Pass the work_struct pointer instead of context data
[deliverable/linux.git] / include / linux / libata.h
index 5f04006e8dd2ce018d02885408a6aa14fffb0f45..b3f32eadbef53ecd611b18743004b4774c648655 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,
This page took 0.023904 seconds and 5 git commands to generate.