3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-20 04:19:25 +01:00

wiphy: Use anonymous enum in favor of #defines

This commit is contained in:
Denis Kenzior 2022-03-02 13:55:26 -06:00
parent 86f34a394b
commit a8f3098115

View File

@ -45,11 +45,13 @@ struct wiphy_radio_work_item {
const struct wiphy_radio_work_item_ops *ops; const struct wiphy_radio_work_item_ops *ops;
}; };
#define WIPHY_WORK_PRIORITY_FRAME 0 enum {
#define WIPHY_WORK_PRIORITY_OFFCHANNEL 0 WIPHY_WORK_PRIORITY_FRAME = 0,
#define WIPHY_WORK_PRIORITY_CONNECT 1 WIPHY_WORK_PRIORITY_OFFCHANNEL = 0,
#define WIPHY_WORK_PRIORITY_SCAN 2 WIPHY_WORK_PRIORITY_CONNECT = 1,
#define WIPHY_WORK_PRIORITY_PERIODIC_SCAN 3 WIPHY_WORK_PRIORITY_SCAN = 2,
WIPHY_WORK_PRIORITY_PERIODIC_SCAN = 3,
};
enum wiphy_state_watch_event { enum wiphy_state_watch_event {
WIPHY_STATE_WATCH_EVENT_POWERED, WIPHY_STATE_WATCH_EVENT_POWERED,