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)
commitf2bf97cb952ee66e0999401fb43ed97310f2f3f2
tree8b8dce0cfc7092b482fde82b7cbb794eb58ea4ca
parentea3c0d4eaa9e89bb1c549d8eb6efc2a75687c651
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