]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:30:05 +0000 (12:30 +0300)
commit6aff483295950abcf3be1a99f56f308bd6a1bab4
tree27893c6abf48474130bdfe9e3735c5c33ab9a945
parent4fae2e3e15157ac312b91234389e79f7a76667b3
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.

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