]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
staging: wilc1000: use id value as argument
authorJohnny Kim <johnny.kim@atmel.com>
Thu, 20 Aug 2015 07:32:52 +0000 (16:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:42 +0000 (18:24 -0700)
commitd42ab0838d040bb57b2368125aeb49a8bf1d2383
tree4a6b8ea580e73aafa68fe56c688812cc08208e1a
parent17c4d5d541e282f05b709885578d7c5ac18e49d8
staging: wilc1000: use id value as argument

The driver communicates with the chipset via the address of handlers
to distinguish async data frame. The SendConfigPkt function gets the
pointer address indicating the handlers as the last argument, but this
requires redundant typecasting and does not support the 64 bit machine.

This patch adds the function which assigns ID values instead of pointer
representing the driver handler to the address and then uses the ID
instead of pointer as the last argument of SendConfigPkt. The driver
also gets the handler's address from the ID in the data frame when it
receives them.

Signed-off-by: Johnny Kim <johnny.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h
drivers/staging/wilc1000/wilc_wfi_netdevice.h