n_gsm: introduce enum gsm_dlci_mode
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 08:49:42 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 11:46:47 +0000 (12:46 +0100)
commite1785996f4c659f24e93aea6632cb565e5924bf5
treeb4323f990aa041f6349604c3d1c7da2c0906b847
parent72ae8cc192a312aa6a3cd643434a8992ea878737
n_gsm: introduce enum gsm_dlci_mode

gsm_dlci->mode is clearly an enumeration. So introduce one and use it
-- compiler now checks if valid values are assigned to the field.

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