Commit 48490dc3 authored by Herve Codina's avatar Herve Codina

soc: fsl: cpm1: qmc: Remove inline function specifiers

The inline function specifier is present on some functions but it is
better to let the compiler decide inlining or not these functions.

Remove inline specifiers.

Fixes: 3178d58e ("soc: fsl: cpm1: Add support for QMC")
Signed-off-by: default avatarHerve Codina <herve.codina@bootlin.com>
Suggested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20231205152116.122512-6-herve.codina@bootlin.com
parent 0e034aec
...@@ -218,37 +218,37 @@ struct qmc { ...@@ -218,37 +218,37 @@ struct qmc {
struct qmc_chan *chans[64]; struct qmc_chan *chans[64];
}; };
static inline void qmc_write16(void __iomem *addr, u16 val) static void qmc_write16(void __iomem *addr, u16 val)
{ {
iowrite16be(val, addr); iowrite16be(val, addr);
} }
static inline u16 qmc_read16(void __iomem *addr) static u16 qmc_read16(void __iomem *addr)
{ {
return ioread16be(addr); return ioread16be(addr);
} }
static inline void qmc_setbits16(void __iomem *addr, u16 set) static void qmc_setbits16(void __iomem *addr, u16 set)
{ {
qmc_write16(addr, qmc_read16(addr) | set); qmc_write16(addr, qmc_read16(addr) | set);
} }
static inline void qmc_clrbits16(void __iomem *addr, u16 clr) static void qmc_clrbits16(void __iomem *addr, u16 clr)
{ {
qmc_write16(addr, qmc_read16(addr) & ~clr); qmc_write16(addr, qmc_read16(addr) & ~clr);
} }
static inline void qmc_write32(void __iomem *addr, u32 val) static void qmc_write32(void __iomem *addr, u32 val)
{ {
iowrite32be(val, addr); iowrite32be(val, addr);
} }
static inline u32 qmc_read32(void __iomem *addr) static u32 qmc_read32(void __iomem *addr)
{ {
return ioread32be(addr); return ioread32be(addr);
} }
static inline void qmc_setbits32(void __iomem *addr, u32 set) static void qmc_setbits32(void __iomem *addr, u32 set)
{ {
qmc_write32(addr, qmc_read32(addr) | set); qmc_write32(addr, qmc_read32(addr) | 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