Commit 7b778ae4 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by David S. Miller

net: broadcom: bcm4908_enet: drop "inline" from C functions

It seems preferred to let compiler optimize code if applicable.
While at it drop unused enet_umac_maskset().
Suggested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent af263af6
...@@ -75,17 +75,17 @@ struct bcm4908_enet { ...@@ -75,17 +75,17 @@ struct bcm4908_enet {
* R/W ops * R/W ops
*/ */
static inline u32 enet_read(struct bcm4908_enet *enet, u16 offset) static u32 enet_read(struct bcm4908_enet *enet, u16 offset)
{ {
return readl(enet->base + offset); return readl(enet->base + offset);
} }
static inline void enet_write(struct bcm4908_enet *enet, u16 offset, u32 value) static void enet_write(struct bcm4908_enet *enet, u16 offset, u32 value)
{ {
writel(value, enet->base + offset); writel(value, enet->base + offset);
} }
static inline void enet_maskset(struct bcm4908_enet *enet, u16 offset, u32 mask, u32 set) static void enet_maskset(struct bcm4908_enet *enet, u16 offset, u32 mask, u32 set)
{ {
u32 val; u32 val;
...@@ -96,27 +96,22 @@ static inline void enet_maskset(struct bcm4908_enet *enet, u16 offset, u32 mask, ...@@ -96,27 +96,22 @@ static inline void enet_maskset(struct bcm4908_enet *enet, u16 offset, u32 mask,
enet_write(enet, offset, val); enet_write(enet, offset, val);
} }
static inline void enet_set(struct bcm4908_enet *enet, u16 offset, u32 set) static void enet_set(struct bcm4908_enet *enet, u16 offset, u32 set)
{ {
enet_maskset(enet, offset, set, set); enet_maskset(enet, offset, set, set);
} }
static inline u32 enet_umac_read(struct bcm4908_enet *enet, u16 offset) static u32 enet_umac_read(struct bcm4908_enet *enet, u16 offset)
{ {
return enet_read(enet, ENET_UNIMAC + offset); return enet_read(enet, ENET_UNIMAC + offset);
} }
static inline void enet_umac_write(struct bcm4908_enet *enet, u16 offset, u32 value) static void enet_umac_write(struct bcm4908_enet *enet, u16 offset, u32 value)
{ {
enet_write(enet, ENET_UNIMAC + offset, value); enet_write(enet, ENET_UNIMAC + offset, value);
} }
static inline void enet_umac_maskset(struct bcm4908_enet *enet, u16 offset, u32 mask, u32 set) static void enet_umac_set(struct bcm4908_enet *enet, u16 offset, u32 set)
{
enet_maskset(enet, ENET_UNIMAC + offset, mask, set);
}
static inline void enet_umac_set(struct bcm4908_enet *enet, u16 offset, u32 set)
{ {
enet_set(enet, ENET_UNIMAC + offset, set); enet_set(enet, ENET_UNIMAC + offset, set);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment