staging: wilc1000: use GENMASK to extract wid type
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 22 Nov 2019 20:52:05 +0000 (20:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 09:28:31 +0000 (10:28 +0100)
commitbaf3f2f9d0bf747023c1d1fb197dd4e621ca3fce
treeeae6b945087efda449450fb6230e8cd3dd3c1549
parenta02a9897cd6dd8b8b45162c8edd02ae924382b4b
staging: wilc1000: use GENMASK to extract wid type

Refactor code by make use of 'GENMASK' to extract the WID type from
buffer received from firmware.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20191122205153.30723-4-adham.abozaeid@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wlan.h
drivers/staging/wilc1000/wlan_cfg.c