tty: n_gsm: add enumeration for gsm encodings
authorDaniel Starke <daniel.starke@siemens.com>
Wed, 31 Aug 2022 07:37:55 +0000 (09:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 14:04:46 +0000 (16:04 +0200)
commit19fb0a664f6448fe7d6a8105d25f308a28ba499d
treedf5b9f48adbdc5cdcc159931f566a5156cbdf3b5
parentccf3a570410af607124534396cfc0e9a0986b5e8
tty: n_gsm: add enumeration for gsm encodings

Add an enumeration for the gsm mux encoding types to improve code
readability and to avoid invalid values. Only two values are defined by the
standard:
- basic option mode
- advanced option mode (uses ISO HDLC standard transparency mechanism)

Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20220831073800.7459-1-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c