cypress_m8: switch data_bits to real character bits
authorJiri Slaby <jslaby@suse.cz>
Thu, 10 Jun 2021 09:02:46 +0000 (11:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 12:03:27 +0000 (14:03 +0200)
commitd8f0209bfedb801d06a81a74b003a882dee3ea3f
tree37baec7fd22a0f66ef79ee7646dc72da71706be9
parent8ea43acc690ca2fe88500356f25c431d25f8a0bb
cypress_m8: switch data_bits to real character bits

Make data_bits what it really is. Assign proper bit counts to data_bits
instead of magic 0..3. There are two reasons:
1) it's clear what we store there, and
2) it will make the transition to tty_tty_get_char_size() in the next
   patch easier.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210610090247.2593-3-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/cypress_m8.c