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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:27:06 +0000 (07:27 +0200)
commit94b4de70808e2790a428e504145d53c2d7529516
treef87e0230e3ad2a10ee30271cda2fa774d3e7e329
parent120322bbce53a6b49f64e00b60aa041d3a52fd8a
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