tty: n_gsm: add helpers to convert mux-num to/from tty-base
authorMartin Hundebøll <martin@geanix.com>
Wed, 10 Jul 2019 19:26:55 +0000 (21:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:43 +0000 (12:43 +0200)
commit43a9e710cbed16e1e811713b5ccae5293471287e
tree18acd7674378d6f87973fa5721bf2e3490eb40b0
parenta64d19aa0ef62c7238e45d3f1cac90dd1915e560
tty: n_gsm: add helpers to convert mux-num to/from tty-base

Make it obvious how the gsm mux number relates to the virtual tty lines
by using helper functions instead of shifting 6 bits.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Link: https://lore.kernel.org/r/20190710192656.60381-3-martin@geanix.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c