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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:46:57 +0000 (11:46 +0900)
commitdfa307ec116beda288c4cd996a5425902feedf4e
treec339331954989b2290436db89698a1905a75e69f
parentbeb1a32f56f9393ea0a7683721bddc8b2dc1faf7
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>
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/u_fs.h