Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29663b0c authored by Julia Lawall's avatar Julia Lawall Committed by Marcel Holtmann
Browse files

mac802154: constify ieee802154_llsec_ops structure



The ieee802154_llsec_ops structure is never modified, so declare it as
const.

Done with the help of Coccinelle.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Acked-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 86f7ac77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -337,7 +337,7 @@ struct ieee802154_mlme_ops {
	void (*get_mac_params)(struct net_device *dev,
			       struct ieee802154_mac_params *params);

	struct ieee802154_llsec_ops *llsec;
	const struct ieee802154_llsec_ops *llsec;
};

static inline struct ieee802154_mlme_ops *
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ static void mac802154_get_mac_params(struct net_device *dev,
	params->lbt = wpan_dev->lbt;
}

static struct ieee802154_llsec_ops mac802154_llsec_ops = {
static const struct ieee802154_llsec_ops mac802154_llsec_ops = {
	.get_params = mac802154_get_params,
	.set_params = mac802154_set_params,
	.add_key = mac802154_add_key,