From f280797060af4c4bbbbf9aec9238f3d420c325dd Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 24 Nov 2020 18:05:02 +1100 Subject: programmer.h,c: Drop dead noop_chip_writeb() fn Drop dead code. BUG=none BRANCH=none TEST=`git grep noop_chip_writeb` Change-Id: I160406df903b3b0a49a5ff3ec78a030e10fa60a0 Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/47894 Tested-by: build bot (Jenkins) Reviewed-by: Sam McNally --- programmer.c | 5 ----- programmer.h | 1 - 2 files changed, 6 deletions(-) diff --git a/programmer.c b/programmer.c index f4b43846..5c841eff 100644 --- a/programmer.c +++ b/programmer.c @@ -35,11 +35,6 @@ void fallback_unmap(void *virt_addr, size_t len) { } -/* No-op chip_writeb() for parallel style drivers not supporting writes */ -void noop_chip_writeb(const struct flashctx *flash, uint8_t val, chipaddr addr) -{ -} - /* Little-endian fallback for drivers not supporting 16 bit accesses */ void fallback_chip_writew(const struct flashctx *flash, uint16_t val, chipaddr addr) diff --git a/programmer.h b/programmer.h index 1bd0d37d..ed30d89d 100644 --- a/programmer.h +++ b/programmer.h @@ -730,7 +730,6 @@ int register_opaque_master(const struct opaque_master *mst); int noop_shutdown(void); void *fallback_map(const char *descr, uintptr_t phys_addr, size_t len); void fallback_unmap(void *virt_addr, size_t len); -void noop_chip_writeb(const struct flashctx *flash, uint8_t val, chipaddr addr); void fallback_chip_writew(const struct flashctx *flash, uint16_t val, chipaddr addr); void fallback_chip_writel(const struct flashctx *flash, uint32_t val, chipaddr addr); void fallback_chip_writen(const struct flashctx *flash, const uint8_t *buf, chipaddr addr, size_t len); -- cgit v1.2.3