mac802154: declare struct ieee802154_ops as const
The ieee802154_ops structure should be never changed during runtime. This patch declare this structure as const to avoid a runtime change. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Cc: Alan Ott <alan@signal11.us> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
此提交包含在:
@@ -197,7 +197,7 @@ struct ieee802154_ops {
|
||||
|
||||
/* Basic interface to register ieee802154 hwice */
|
||||
struct ieee802154_hw *
|
||||
ieee802154_alloc_hw(size_t priv_data_len, struct ieee802154_ops *ops);
|
||||
ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops);
|
||||
void ieee802154_free_hw(struct ieee802154_hw *hw);
|
||||
int ieee802154_register_hw(struct ieee802154_hw *hw);
|
||||
void ieee802154_unregister_hw(struct ieee802154_hw *hw);
|
||||
|
新增問題並參考
封鎖使用者