USB: serial: ftdi_sio: use cur_altsetting for consistency
authorMychaela N. Falconia <falcon@freecalypso.org>
Fri, 2 Oct 2020 18:49:37 +0000 (18:49 +0000)
committerJohan Hovold <johan@kernel.org>
Mon, 5 Oct 2020 11:01:09 +0000 (13:01 +0200)
commit711a37813ad9878232efa51e9c7e2bd875337b14
tree7d9ee29563e94ec169cd21276e7e2f9affc2edbe
parent924a9213358fb92fa3c3225d6d042aa058167405
USB: serial: ftdi_sio: use cur_altsetting for consistency

ftdi_determine_type() function had this construct in it to get the
number of the interface it is operating on:

  inter = serial->interface->altsetting->desc.bInterfaceNumber;

Elsewhere in this driver cur_altsetting is used instead for this
purpose.  Change ftdi_determine_type() to use cur_altsetting
for consistency.

Signed-off-by: Mychaela N. Falconia <falcon@freecalypso.org>
[ johan: fix old style issues; drop braces and random white space ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c