usb: gadget: function: f_fs: Move epfile waitqueue to ffs_data.
authorJerry Zhang <zhangjerry@google.com>
Tue, 18 Apr 2017 23:11:48 +0000 (16:11 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 2 Jun 2017 08:22:31 +0000 (11:22 +0300)
commite16828cf945ca11b05df1cc755af8e4b669f6dd3
tree61a8bfc51b95e826626c2140ac8d6d4ecadfff0b
parent222155de45573e978cda988b7efc7d4e7b9a8ff9
usb: gadget: function: f_fs: Move epfile waitqueue to ffs_data.

There were individual waitqueues for each epfile but eps_enable
would iterate through all of them, resulting in essentially the
same wakeup time.

The waitqueue represents the function being enabled, so a central
waitqueue in ffs_data makes more sense and is less redundant.

Also use wake_up_interruptible to reflect use of
wait_event_interruptible.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Jerry Zhang <zhangjerry@google.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_fs.c
drivers/usb/gadget/function/u_fs.h