mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-19 05:06:53 +00:00
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>
This commit is contained in:
parent
29cd54b9bf
commit
6d5fb87745
1 changed files with 17 additions and 15 deletions
|
|
@ -43,8 +43,7 @@ static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ieee802154_set_channel(struct wpan_phy *wpan_phy, const u8 page,
|
ieee802154_set_channel(struct wpan_phy *wpan_phy, u8 page, u8 channel)
|
||||||
const u8 channel)
|
|
||||||
{
|
{
|
||||||
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
@ -64,8 +63,9 @@ ieee802154_set_channel(struct wpan_phy *wpan_phy, const u8 page,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ieee802154_set_pan_id(struct wpan_phy *wpan_phy,
|
static int
|
||||||
struct wpan_dev *wpan_dev, const u16 pan_id)
|
ieee802154_set_pan_id(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
|
||||||
|
u16 pan_id)
|
||||||
{
|
{
|
||||||
ASSERT_RTNL();
|
ASSERT_RTNL();
|
||||||
|
|
||||||
|
|
@ -86,7 +86,7 @@ static int ieee802154_set_pan_id(struct wpan_phy *wpan_phy,
|
||||||
static int
|
static int
|
||||||
ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy,
|
ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy,
|
||||||
struct wpan_dev *wpan_dev,
|
struct wpan_dev *wpan_dev,
|
||||||
const u8 min_be, const u8 max_be)
|
u8 min_be, u8 max_be)
|
||||||
{
|
{
|
||||||
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
||||||
|
|
||||||
|
|
@ -102,7 +102,7 @@ ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy,
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
|
ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
|
||||||
const u16 short_addr)
|
u16 short_addr)
|
||||||
{
|
{
|
||||||
ASSERT_RTNL();
|
ASSERT_RTNL();
|
||||||
|
|
||||||
|
|
@ -125,9 +125,10 @@ ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy,
|
static int
|
||||||
struct wpan_dev *wpan_dev,
|
ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy,
|
||||||
const u8 max_csma_backoffs)
|
struct wpan_dev *wpan_dev,
|
||||||
|
u8 max_csma_backoffs)
|
||||||
{
|
{
|
||||||
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
||||||
|
|
||||||
|
|
@ -140,9 +141,10 @@ static int ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy,
|
static int
|
||||||
struct wpan_dev *wpan_dev,
|
ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy,
|
||||||
const s8 max_frame_retries)
|
struct wpan_dev *wpan_dev,
|
||||||
|
s8 max_frame_retries)
|
||||||
{
|
{
|
||||||
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
||||||
|
|
||||||
|
|
@ -155,9 +157,9 @@ static int ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ieee802154_set_lbt_mode(struct wpan_phy *wpan_phy,
|
static int
|
||||||
struct wpan_dev *wpan_dev,
|
ieee802154_set_lbt_mode(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
|
||||||
const bool mode)
|
bool mode)
|
||||||
{
|
{
|
||||||
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue