projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc12d4b
)
spi/bcm63xx: Remove the unused function bcm_spi_readw()
author
Jiapeng Chong
<jiapeng.chong@linux.alibaba.com>
Tue, 28 Feb 2023 02:32:43 +0000
(10:32 +0800)
committer
Mark Brown
<broonie@kernel.org>
Sun, 5 Mar 2023 23:41:26 +0000
(23:41 +0000)
The function bcm_spi_readw is defined in the spi-bcm63xx.c file, but
not called elsewhere, so remove this unused function.
drivers/spi/spi-bcm63xx.c:160:19: warning: unused function 'bcm_spi_readw'.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link:
https://bugzilla.openanolis.cn/show_bug.cgi?id=4242
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20230228023243.118429-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm63xx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-bcm63xx.c
b/drivers/spi/spi-bcm63xx.c
index 3686d78c44a6d16cad58ef847a4b0e5c569676fa..7279e6b883c15a844314f342e7bc9511093d6198 100644
(file)
--- a/
drivers/spi/spi-bcm63xx.c
+++ b/
drivers/spi/spi-bcm63xx.c
@@
-157,16
+157,6
@@
static inline u8 bcm_spi_readb(struct bcm63xx_spi *bs,
return readb(bs->regs + bs->reg_offsets[offset]);
}
-static inline u16 bcm_spi_readw(struct bcm63xx_spi *bs,
- unsigned int offset)
-{
-#ifdef CONFIG_CPU_BIG_ENDIAN
- return ioread16be(bs->regs + bs->reg_offsets[offset]);
-#else
- return readw(bs->regs + bs->reg_offsets[offset]);
-#endif
-}
-
static inline void bcm_spi_writeb(struct bcm63xx_spi *bs,
u8 value, unsigned int offset)
{