spi: microchip-core: Remove the unused function mchp_corespi_enable()
PATCH 1/1 spi: microchip-core: Remove the unused function mchp_corespi_enable()
The function mchp_corespi_enable() is defined in the spi-microchip-core.c file, but not called elsewhere, so delete this unused function.
drivers/spi/spi-microchip-core.c:122:20: warning: unused function 'mchp_corespi_enable'.
--- drivers/spi/spi-microchip-core.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/spi/spi-microchip-core.c +0 -9
@@ -119,15 +119,6 @@ static inline void mchp_corespi_write(struct mchp_corespi *spi, unsigned int regwritel (val, spi->regs + reg); } -static inline void mchp_corespi_enable (struct mchp_corespi *spi) -{ -u32 control =mchp_corespi_read (spi,REG_CONTROL ); - - control |=CONTROL_ENABLE ; - -mchp_corespi_write (spi,REG_CONTROL , control); -} -static inline void mchp_corespi_disable (struct mchp_corespi *spi) {u32 control =mchp_corespi_read (spi,REG_CONTROL );
Signature · 1 line
2.20.1.7.g153144c
Quoted 18 lines · Jiapeng Chong
The function
mchp_corespi_enable()is defined in thespi-microchip-core.cfile, but not called elsewhere, so delete this unused function.
drivers/spi/spi-microchip-core.c:122:20: warning: unused function 'mchp_corespi_enable'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/spi/spi-microchip-core.c | 9 --------- 1 file changed, 9 deletions(-)drivers/spi/spi-microchip-core.c +0
-0@@ -119,15 +119,6 @@ static inline void mchp_corespi_write(struct mchp_corespi *spi, unsigned int regwritel (val, spi->regs + reg);
drivers/spi/spi-microchip-core.c static inline void mchp_corespi_write(struct mchp_corespi *spi, unsigned int reg · line 129
Quoted 10 lines
drivers/spi/spi-microchip-core.c +0
-8} -static inline void mchp_corespi_enable (struct mchp_corespi *spi) -{ -u32 control =mchp_corespi_read (spi,REG_CONTROL ); - - control |=CONTROL_ENABLE ; - -mchp_corespi_write (spi,REG_CONTROL , control); -}
That's a bit silly... Thanks Jiapeng.
Quoted 7 lines
drivers/spi/spi-microchip-core.c +0
-1-static inline void mchp_corespi_disable (struct mchp_corespi *spi) {u32 control =mchp_corespi_read (spi,REG_CONTROL );Signature · 1 line
2.20.1.7.g153144c
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Mark Brown
maintainerQuoted 6 lines · Jiapeng Chong
The function
mchp_corespi_enable()is defined in thespi-microchip-core.cfile, but not called elsewhere, so delete this unused function.
drivers/spi/spi-microchip-core.c:122:20: warning: unused function 'mchp_corespi_enable'.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: microchip-core: Remove the unused function mchp_corespi_enable()
commit: 8f4b3d2f653937956fdc68b665c621dfa3cf2fa7
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark