staging: fbtft: remove unused function fbtft_write_gpio16_wr_latched
Subsystems (3)
PATCH 1/1 staging: fbtft: remove unused function fbtft_write_gpio16_wr_latched
The function fbtft_write_gpio16_wr_latched is not referenced anywhere in the driver and only contains a stub implementation.
Remove it from the driver.
Signed-off-by Hungyu Lin <[email protected]>
--- drivers/staging/fbtft/fbtft-io.c | 7 ------- drivers/staging/fbtft/fbtft.h | 1 - 2 files changed, 8 deletions(-)
drivers/staging/fbtft/fbtft-io.c +0 -7
@@ -227,10 +227,3 @@ int fbtft_write_gpio16_wr(struct fbtft_par *par, void *buf, size_t len)return 0 ; }EXPORT_SYMBOL (fbtft_write_gpio16_wr); - -int fbtft_write_gpio16_wr_latched (struct fbtft_par *par,void *buf,size_t len) -{ -dev_err (par->info->device,"%s: function not implemented\n" , __func__); -return -1 ; -} -EXPORT_SYMBOL (fbtft_write_gpio16_wr_latched);
drivers/staging/fbtft/fbtft.h +0 -1
@@ -262,7 +262,6 @@ int fbtft_write_spi_emulate_9(struct fbtft_par *par, void *buf, size_t len);int fbtft_read_spi (struct fbtft_par *par,void *buf,size_t len);int fbtft_write_gpio8_wr (struct fbtft_par *par,void *buf,size_t len);int fbtft_write_gpio16_wr (struct fbtft_par *par,void *buf,size_t len); -int fbtft_write_gpio16_wr_latched (struct fbtft_par *par,void *buf,size_t len);/* fbtft-bus.c */ int fbtft_write_vmem8_bus8 (struct fbtft_par *par,size_t offset,size_t len);
Signature · 1 line
2.34.1
Quoted 1 line · Hungyu Lin
The function
fbtft_write_gpio16_wr_latchedis not referenced anywhere
fbtft_write_gpio16_wr_latched()
Quoted 3 lines
in the driver and only contains a stub implementation.
Remove it from the driver.
Agree, pure code removal is always welcome.
Reviewed-by Andy Shevchenko <[email protected]>
Signature · 2 lines
With Best Regards, Andy Shevchenko