staging: wfx: relocate wfx_fill_sl_key() in secure_link.h
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Thu, 17 Oct 2019 09:40:05 +0000 (09:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Oct 2019 18:42:31 +0000 (20:42 +0200)
commita374ba3dc8e81f9e61dc8139899c03c602fbd5df
treecb923264948ed6968dc8eb9384d4b5351fef4c9e
parent27a6fe3b21ec80662096b2c793036b5e8c3401ed
staging: wfx: relocate wfx_fill_sl_key() in secure_link.h

"Secure link" feature is not available in in-tree driver (because it
depends on mbedtls). Thus, secure_link.h only empty functions.

Module parameter "slk_key" and associated function wfx_fill_sl_key() had
an unjustifiable place in main.c. This patch relocate them to
secure_link.h.

BTW, content of wfx_fill_sl_key() is now useless. Just keep a warning if
user try to use "slk_key" attribute (unsupported by this driver).

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191017093954.657-2-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/main.c
drivers/staging/wfx/main.h
drivers/staging/wfx/secure_link.h