]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: avoid use of interface names for validation
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 5 Feb 2019 07:15:46 +0000 (07:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Feb 2019 12:31:20 +0000 (13:31 +0100)
commitfa1c9ff9e26395a790b593d048f683ae50ec2e6a
tree8b8dce0cfc7092b482fde82b7cbb794eb58ea4ca
parent8e5afee1b80d123821b45a2af45787a996b833d6
staging: wilc1000: avoid use of interface names for validation

Avoid use of interface name i.e 'wlan0' & 'p2p0' to check the interface
type in dev_state_ev_handler(). Now making use of netdev_ops and iface
type to know interface. Reorder the functions to avoid the forward
declaration after the above changes

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