]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: functionfs: replace FFS_SETUP_STATUS with an inline function
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 10 Feb 2014 09:42:41 +0000 (10:42 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 18 Feb 2014 16:53:00 +0000 (10:53 -0600)
commita7ecf0544f0fc710ba6e2ff751d328a4190c4a1f
treecdfad1ce937dc22085e12fbe3cb2f7e31fbb9022
parente46318a00091e3e009363a516acc44a4a80e2ebb
usb: gadget: functionfs: replace FFS_SETUP_STATUS with an inline function

The FFS_SETUP_STATUS macro could be trivialy replaced with an static
inline function but more importantly its name was tad confusing.
The name suggested it was a simple accessor macro but it actually
did change the state of the ffs_data structure perfomring
a FFS_SETUP_CANCELLED -> FFS_NO_SETUP transition.  The name of the
function -- ffs_setup_state_clear_cancelled -- should better
describe what the function actually does.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/u_fs.h