OSDN Git Service

staging: wilc1000: remove host_if_work() to handle TODO list issue
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 26 Jun 2018 06:07:03 +0000 (11:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:55:51 +0000 (21:55 +0900)
commit7233be314e022a9b1f62c986e313d92a86ebb281
treeacb4f4aaedc350aa6860d7e672a474dc0087a9b5
parent8c05c98b1a2f0bc8a8fbcc0746adedea01311040
staging: wilc1000: remove host_if_work() to handle TODO list issue

Remove multiplexing of command at host_if_work().
Make use of function pointer instead of command ID to track individual
work_struct separately.

Modified the handler function to take work_struct pointer as argument
and its return type is changes to void. Now prototype of 'handle_'
function is same work_struct i.e. 'void (*fun)(struct struct *)' to
register with work_queue.
Removed host_if_work() because its not required now.

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