usb: gadget: u_serial: allow more console gadget ports
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sat, 10 Aug 2019 08:42:51 +0000 (10:42 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 22 Oct 2019 07:27:12 +0000 (10:27 +0300)
commitd7cb8fb7aa7dc47d1b751c17c15672068667053c
treeb094bc0d386ff9b22dc950cb8bfea573d02ef611
parentb417343c6a0f50487d59aef975da0a6c7b69d348
usb: gadget: u_serial: allow more console gadget ports

Allow configuring more than one console using USB serial or ACM gadget.

By default, only first (ttyGS0) is a console, but this may be changed
using function's new "console" attribute.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_acm.c
drivers/usb/gadget/function/f_serial.c
drivers/usb/gadget/function/u_serial.c
drivers/usb/gadget/function/u_serial.h