mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ieee802154: rework wpan_phy index assignment
This patch reworks the wpan_phy index incrementation. It's now similar like wireless wiphy index incrementation. We move the wpan_phy index attribute inside of cfg802154_registered_device and use atomic operations instead locking mechanism via wpan_phy_mutex. Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
0d8a52f933
commit
53f9ee61b4
3 changed files with 14 additions and 20 deletions
|
|
@ -61,7 +61,6 @@ struct wpan_phy {
|
|||
s32 cca_ed_level;
|
||||
|
||||
struct device dev;
|
||||
int idx;
|
||||
|
||||
char priv[0] __aligned(NETDEV_ALIGN);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue