staging: vt6656: Use defines in preamble_type variables
authorOscar Carter <oscar.carter@gmx.com>
Sat, 28 Mar 2020 14:17:38 +0000 (15:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 06:55:27 +0000 (08:55 +0200)
commit3b643f431162469009f38998a4d328d62496cecf
tree61b1eb9d30c31170a68b75f1341b84ded879820a
parent3d7b79f2ee473daa547722b5a14d4028ef68d097
staging: vt6656: Use defines in preamble_type variables

Use the PREAMBLE_SHORT and PREAMBLE_LONG defines present in the file
"baseband.h" to assign values to preamble_type variables. Also, use the
same defines to make comparisons against these variables.

In this way, avoid the use of numerical literals or boolean values and
make the code more clear.

Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Reviewed-by: Quentin Deslandes <quentin.deslandes@itdev.co.uk>
Link: https://lore.kernel.org/r/20200328141738.23810-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/baseband.c
drivers/staging/vt6656/main_usb.c