]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ae82d92a48090d0a4914f15156a6cae20f32377
treedf5b9f48adbdc5cdcc159931f566a5156cbdf3b5
parente67fe5007eaedc674e3eefa38aff27f9832f5770
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