staging: wilc1000: refactor wilc_set_operation_mode() to avoid deferred handling
authorAjay Singh <ajay.kathat@microchip.com>
Sun, 2 Dec 2018 18:03:03 +0000 (18:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 08:49:45 +0000 (09:49 +0100)
commit5dea026441e5d0aabbb562dd68cb796190052aae
treee05973daa8d6a6960ae87e6c7ceb7aba6be73ea7
parentdaf0483e1ca3ffc27b0024a815557bfa70120cb6
staging: wilc1000: refactor wilc_set_operation_mode() to avoid deferred handling

Avoid handling of WID_CURRENT_CHANNEL wid command in deferred approach.
Instead of posting the wid to work queue now handle directly from the
caller context. Use structure to fill in the firmware specific format.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h