UPSTREAM: usb: dwc3: gadget: rely on sg_is_last() and list_is_last()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 13 May 2016 07:07:47 +0000 (10:07 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commita8d6bbd8c6300e784d43fd13b75c4b191e7dbfa1
tree820bcd77ef4f363c62072f875be8c7f9655045c1
parent5ff1323f846d2358771dd9bdb44e8279879d587d
UPSTREAM: usb: dwc3: gadget: rely on sg_is_last() and list_is_last()

sg_is_last() and list_is_last() will encode the
required information for the driver to make
decisions WRT CHN and LST bits.

While at that, also replace '1' with 'true' for
consistency.

Change-Id: I827e39df3058f696d753e03130a951017ed45bf5
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 6aff483295950abcf3be1a99f56f308bd6a1bab4)
drivers/usb/dwc3/gadget.c