usb: dwc2: gadget: Add checking for g-tx-fifo-size parameter
authorSevak Arakelyan <sevaka@synopsys.com>
Mon, 23 Jan 2017 23:01:45 +0000 (15:01 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 14:19:11 +0000 (16:19 +0200)
commit3c6aea7344c363f298bfb9952e2906b9574f59dc
tree57674536a88ea0bcf57489884758038cd83ad296
parentc138ecfa6108edee17fabfa56285b00f66641659
usb: dwc2: gadget: Add checking for g-tx-fifo-size parameter

Add dwc2_check_param_tx_fifo_sizes function which validates
the members of g_tx_fifo_size array and sets to average or
default values if it is needed.

Cc: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Sevak Arakelyan <sevaka@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/params.c