aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-17 02:20:46 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-17 03:49:15 -0500
commit6d5fb87745081b6fe5bae5cac6dc18a57bd40ca3 (patch)
treec22f47284517a722d6b9110f46558dd2432c7f5c
parent29cd54b9bfaccd8e1291e100a1cc9e42b7ff717e (diff)
mac802154: remove const for non pointer in cfg ops
This patches removes the const keyword in variables which are non pointers. There is no sense to declare call by value parameters as const. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reported-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--net/mac802154/cfg.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c
index 5d669d87dd7d..2b3610c51489 100644
--- a/net/mac802154/cfg.c
+++ b/net/mac802154/cfg.c
@@ -43,8 +43,7 @@ static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy,
43} 43}
44 44
45static int 45static int
46ieee802154_set_channel(struct wpan_phy *wpan_phy, const u8 page, 46ieee802154_set_channel(struct wpan_phy *wpan_phy, u8 page, u8 channel)
47 const u8 channel)
48{ 47{
49 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); 48 struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
50 int ret; 49 int ret;
@@ -64,8 +63,9 @@ ieee802154_set_channel(struct wpan_phy *wpan_phy, const u8 page,
64 return ret; 63 return ret;
65} 64}
66 65
67static int ieee802154_set_pan_id(struct wpan_phy *wpan_phy, 66static int
68 struct wpan_dev *wpan_dev, const u16 pan_id) 67ieee802154_set_pan_id(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
68 u16 pan_id)
69{ 69{
70 ASSERT_RTNL(); 70 ASSERT_RTNL();
71 71
@@ -86,7 +86,7 @@ static int ieee802154_set_pan_id(struct wpan_phy *wpan_phy,
86static int 86static int
87ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy, 87ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy,
88 struct wpan_dev *wpan_dev, 88 struct wpan_dev *wpan_dev,
89 const u8 min_be, const u8 max_be) 89 u8 min_be, u8 max_be)
90{ 90{
91 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); 91 struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
92 92
@@ -102,7 +102,7 @@ ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy,
102 102
103static int 103static int
104ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, 104ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
105 const u16 short_addr) 105 u16 short_addr)
106{ 106{
107 ASSERT_RTNL(); 107 ASSERT_RTNL();
108 108
@@ -125,9 +125,10 @@ ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
125 return 0; 125 return 0;
126} 126}
127 127
128static int ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy, 128static int
129 struct wpan_dev *wpan_dev, 129ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy,
130 const u8 max_csma_backoffs) 130 struct wpan_dev *wpan_dev,
131 u8 max_csma_backoffs)
131{ 132{
132 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); 133 struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
133 134
@@ -140,9 +141,10 @@ static int ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy,
140 return 0; 141 return 0;
141} 142}
142 143
143static int ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy, 144static int
144 struct wpan_dev *wpan_dev, 145ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy,
145 const s8 max_frame_retries) 146 struct wpan_dev *wpan_dev,
147 s8 max_frame_retries)
146{ 148{
147 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); 149 struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
148 150
@@ -155,9 +157,9 @@ static int ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy,
155 return 0; 157 return 0;
156} 158}
157 159
158static int ieee802154_set_lbt_mode(struct wpan_phy *wpan_phy, 160static int
159 struct wpan_dev *wpan_dev, 161ieee802154_set_lbt_mode(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
160 const bool mode) 162 bool mode)
161{ 163{
162 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); 164 struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
163 165