staging: ozwpan: Create deferred work to destroy PD object.
[firefly-linux-kernel-4.4.55.git] / drivers / staging / ozwpan / ozpd.h
index 57e98c897711e79a35e838d329c5498f3858f3aa..12c712956888e6d2f60dc1cbe3fb5eeab27c3f8c 100644 (file)
@@ -48,8 +48,8 @@ struct oz_farewell {
        struct list_head link;
        u8 ep_num;
        u8 index;
-       u8 report[32];
        u8 len;
+       u8 report[0];
 };
 
 /* Data structure that holds information on a specific peripheral device (PD).
@@ -99,6 +99,7 @@ struct oz_pd {
        u8      timeout_type;
        struct tasklet_struct   heartbeat_tasklet;
        struct tasklet_struct   timeout_tasklet;
+       struct work_struct workitem;
 };
 
 #define OZ_MAX_QUEUED_FRAMES   4