usb: chipidea: error on overflow for port_test_write
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Mon, 15 Feb 2016 19:09:46 +0000 (19:09 +0000)
committerPeter Chen <peter.chen@nxp.com>
Fri, 19 Feb 2016 06:12:39 +0000 (14:12 +0800)
commita4de018d2b0364e40a626fa521ec21e31a10ac84
treee8977ba2b54a4cf8a8f4a87ad479d74e270ae6aa
parent18558cae0272f8fd9647e69d3fec1565a7949865
usb: chipidea: error on overflow for port_test_write

The write value is 8bit, but currently writing a larger number
(eg a doubled digit) is not errored but instead gets cast and
sets off an action probably undesired.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
(Change the style of commit log to fix checkpatch.pl warning)
drivers/usb/chipidea/debug.c