usb: change selected mode update position 66/97366/2
authortaeyoung <ty317.kim@samsung.com>
Mon, 14 Nov 2016 04:26:55 +0000 (13:26 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Mon, 14 Nov 2016 04:41:59 +0000 (20:41 -0800)
commit31e7079e93d8ed9c02a057ab8f87d6b499d7d4c5
tree1db20c0ef2393d063fa307f51e8d179b9d41dff6
parent9e4f93b40cbff8a023cdf8b2e61c234356ae9574
usb: change selected mode update position

- Selected mode update operation is separated from
  the gadget change operation. The operation needs
  to be executed even if real gadget change operation
  is not executed in emulator.

- Gadget enable operation does not check the previous
  usb mode. It just enables usb gadget which is
  currently set.

Change-Id: I6e252109812ea7842a9c156a11bd18884946ea10
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/usb/usb.c