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>
This commit is contained in:

committed by
Marcel Holtmann

parent
19ec690a43
commit
1630186100
@@ -579,7 +579,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct ieee802154_ops mrf24j40_ops = {
|
||||
static const struct ieee802154_ops mrf24j40_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.xmit_sync = mrf24j40_tx,
|
||||
.ed = mrf24j40_ed,
|
||||
|
Reference in New Issue
Block a user