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>
这个提交包含在:
Alexander Aring
2014-10-28 18:21:18 +01:00
提交者 Marcel Holtmann
父节点 19ec690a43
当前提交 1630186100
修改 7 个文件,包含 7 行新增7 行删除

查看文件

@@ -28,7 +28,7 @@
/* mac802154 device private data */
struct ieee802154_local {
struct ieee802154_hw hw;
struct ieee802154_ops *ops;
const struct ieee802154_ops *ops;
/* ieee802154 phy */
struct wpan_phy *phy;

查看文件

@@ -187,7 +187,7 @@ static void ieee802154_tasklet_handler(unsigned long data)
}
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)
{
struct wpan_phy *phy;
struct ieee802154_local *local;