staging: wilc1000: use vif index to communicate with wilc device
authorGlen Lee <glen.lee@atmel.com>
Mon, 21 Dec 2015 05:18:43 +0000 (14:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:21:09 +0000 (13:21 -0800)
commiteb9939b76007ab6dfa14f6664e6cf4deda9c56cd
tree9118a9c16d61b14370bb0bba210d413475f57fa0
parentcd04d221dd6c9ceb5732d2c22c9e3bb7f8830a6a
staging: wilc1000: use vif index to communicate with wilc device

We now have vif index in all functions related with host interface thread.
wilc_get_vif_idx and wilc_get_vif_from_idx are added to get id and vif
respectively.
Relace get_id_from_handler with wilc_get_vif_idx and get_handler_from_id with
wilc_get_vif_from_idx. Remove unused function get_handler_from_id as well.
We get vif where wilc_get_vif_from_idx is called, so pass vif to msg.vif.

There are two get_id_from_handler left. They will be removed in later patch.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c