diff options
author | Marcin Ciupak <marcin.s.ciupak@gmail.com> | 2017-12-08 18:31:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-08 18:36:35 +0300 |
commit | 1c12da3576ce2a37dd59a5648b7c41656d06ae47 (patch) | |
tree | 653eb711393f9456825c1244cc77cc67b6c54223 /drivers/staging/pi433/rf69_enum.h | |
parent | 8b26315ec780a7e4791222420c31cbc3c1125700 (diff) | |
download | linux-1c12da3576ce2a37dd59a5648b7c41656d06ae47.tar.xz |
staging: pi433: Fix missing 'undefined' value in enum modulation
It is possible that rf69_get_modulation() function will return
'undefined' value and this value is missing in enum modulation. Fix this
by adding appropriate entry in enum modulation.
Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/pi433/rf69_enum.h')
-rw-r--r-- | drivers/staging/pi433/rf69_enum.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index 4e64e38ae4ff..ec91f329d871 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -28,7 +28,8 @@ enum mode { enum modulation { OOK, - FSK + FSK, + UNDEF }; enum mod_shaping { |