Ian Abbott d0559a2f29 USB: serial: ftdi_sio: only allow valid event_char values
The "event_char" device attribute value, when written, is interpreted as
an enable bit in bit 8, and an "event character" in bits 7 to 0.

Return an error -EINVAL for out-of-range values.  Use kstrtouint() to
parse the integer instead of the obsolete simple_strtoul().

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Johan Hovold <johan@kernel.org>
2017-03-13 16:55:41 +01:00
..
2017-02-22 11:15:59 -08:00
2015-12-18 09:30:34 -08:00
2017-01-26 09:49:13 +01:00
2016-05-20 21:12:25 -07:00
2017-01-26 09:49:13 +01:00
2017-02-09 13:57:05 +01:00
2017-01-26 09:49:13 +01:00