]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: gadget: combine modify & restore into single argument
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 9 Apr 2018 09:40:48 +0000 (12:40 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:00:58 +0000 (10:00 +0300)
commita2d23f08038eceae265f8c609d5ee970c41c4431
tree8367c97bc0b3b703146290264e57427c208f0397
parent8f1c99cd24b01825fbd727efa75599b98432adc8
usb: dwc3: gadget: combine modify & restore into single argument

Those two arguments refer to a single bitfield in the register. In
order to simplify the code, we can combine them into a single argument
and expect caller to pass the correct action argument at all times.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c